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

Method Sign

lib/crypto/bls.go:85–88  ·  view source on GitHub ↗

Sign() digitally signs a message and returns the signature output

(msg []byte)

Source from the content-addressed store, hash-verified

83
84// Sign() digitally signs a message and returns the signature output
85func (b *BLS12381PrivateKey) Sign(msg []byte) []byte {
86 bz, _ := b.scheme.Sign(b.Scalar, msg)
87 return bz
88}
89
90// PublicKey() returns the individual public key that pairs with this BLS private key
91// for basic signature verification

Callers 2

TestSignFunction · 0.95
TestBLSFunction · 0.95

Calls 1

SignMethod · 0.65

Tested by 2

TestSignFunction · 0.76
TestBLSFunction · 0.76