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

Method bytes

store/smt.go:970–970  ·  view source on GitHub ↗

bytes() encodes a key object to bytes

()

Source from the content-addressed store, hash-verified

968
969// bytes() encodes a key object to bytes
970func (k *key) bytes() []byte { return k.key }
971
972// fromBytes() creates a new key object from existing encoded key bytes
973func (k *key) fromBytes(data []byte) *key {

Callers 15

index.jsFile · 0.45
index.cjsFile · 0.45
index.jsFile · 0.45
index.cjsFile · 0.45
TestSetFunction · 0.45
TestDeleteFunction · 0.45
TestNewSMTFunction · 0.45
FuzzKeyDecodeEncodeFunction · 0.45
NewSMTFunction · 0.45
setMethod · 0.45
deleteMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestSetFunction · 0.36
TestDeleteFunction · 0.36
TestNewSMTFunction · 0.36
FuzzKeyDecodeEncodeFunction · 0.36