code.vegaprotocol.io/vega@v0.79.0/protos/vega/commands/v1/node_signature.go (about)

     1  package v1
     2  
     3  func (n NodeSignature) DeepClone() *NodeSignature {
     4  	if len(n.Sig) > 0 {
     5  		sigBytes := n.Sig
     6  		n.Sig = make([]byte, len(sigBytes))
     7  		for i, b := range sigBytes {
     8  			n.Sig[i] = b
     9  		}
    10  	}
    11  	return &n
    12  }
    13  
    14  // IsEvent required for graphql event stream.
    15  func (NodeSignature) IsEvent() {}