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

Method Bytes

lib/crypto/key.go:47–47  ·  view source on GitHub ↗

Bytes() casts the public key to bytes

()

Source from the content-addressed store, hash-verified

45 Marshal() ([]byte, error)
46 // Bytes() casts the public key to bytes
47 Bytes() []byte
48 // String() returns the hex string representation
49 String() string
50 Equals(AddressI) bool

Callers 15

ConsensusSummaryMethod · 0.65
CheckMempoolMethod · 0.65
NewFunction · 0.65
TestNewValidatorSetFunction · 0.65
SignMethod · 0.65
NewMetricsServerFunction · 0.65
newTestAddressBytesFunction · 0.65
newTestPublicKeyBytesFunction · 0.65
FromStringMethod · 0.65
TestSignFunction · 0.65
EqualsMethod · 0.65
EqualsMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestNewValidatorSetFunction · 0.52
newTestAddressBytesFunction · 0.52
newTestPublicKeyBytesFunction · 0.52
TestSignFunction · 0.52
TestEthSECP256K1BytesFunction · 0.52
TestSECP256K1BytesFunction · 0.52
TestED25519BytesFunction · 0.52