MCPcopy
hub / github.com/canopy-network/canopy / Signature

Struct Signature

lib/tx.pb.go:262–270  ·  view source on GitHub ↗

A Signature is a digital signature is a cryptographic "fingerprint" created with a private key, allowing others to verify the authenticity and integrity of a message using the corresponding public key

Source from the content-addressed store, hash-verified

260// A Signature is a digital signature is a cryptographic "fingerprint" created with a private key,
261// allowing others to verify the authenticity and integrity of a message using the corresponding public key
262type Signature struct {
263 state protoimpl.MessageState `protogen:"open.v1"`
264 // public_key: is a cryptographic code shared openly, used to verify digital signatures
265 PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"publicKey"` // @gotags: json:"publicKey"
266 // signature: the bytes of the signature output from a private key which may be verified with the message and public
267 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
268 unknownFields protoimpl.UnknownFields
269 sizeCache protoimpl.SizeCache
270}
271
272func (x *Signature) Reset() {
273 *x = Signature{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected