MCPcopy Create free account
hub / github.com/chain/txvm / Encode

Method Encode

crypto/ed25519/ecmath/point.go:86–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (z *Point) Encode() [32]byte {
87 var e [32]byte
88 (*edwards25519.ExtendedGroupElement)(z).ToBytes(&e)
89 return e
90}
91
92func (z *Point) Decode(e [32]byte) (*Point, bool) {
93 ok := (*edwards25519.ExtendedGroupElement)(z).FromBytes(&e)

Callers 9

ConstTimeEqualMethod · 0.95
TestBasePointArithFunction · 0.95
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
TestMarshalingFuncsFunction · 0.80
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
ReadMethod · 0.80

Calls 1

ToBytesMethod · 0.45

Tested by 2

TestBasePointArithFunction · 0.76
TestMarshalingFuncsFunction · 0.64