github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/handlers/decoration/plugin/decorator.go (about) 1 /* 2 Copyright hechain, SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package main 8 9 import ( 10 "github.com/hechain20/hechain/core/handlers/decoration" 11 "github.com/hyperledger/fabric-protos-go/peer" 12 ) 13 14 // NewDecorator creates a new decorator 15 func NewDecorator() decoration.Decorator { 16 return &decorator{} 17 } 18 19 type decorator struct{} 20 21 // Decorate decorates a chaincode input by changing it 22 func (d *decorator) Decorate(proposal *peer.Proposal, input *peer.ChaincodeInput) *peer.ChaincodeInput { 23 return input 24 } 25 26 func main() { 27 }