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

Method Encode

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

Source from the content-addressed store, hash-verified

70}
71
72func (z *Point) Encode() [32]byte {
73 var e [32]byte
74 (*edwards25519.ExtendedGroupElement)(z).ToBytes(&e)
75 return e
76}
77
78func (z *Point) Decode(e [32]byte) (*Point, bool) {
79 ok := (*edwards25519.ExtendedGroupElement)(z).FromBytes(&e)

Callers 15

ConstTimeEqualMethod · 0.95
TestBasePointArithFunction · 0.95
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
TestMarshalingFuncsFunction · 0.80
serveJoinMethod · 0.80
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
MarshalTextMethod · 0.80
CallRawMethod · 0.80
histogramFunction · 0.80

Calls 1

ToBytesMethod · 0.45

Tested by 2

TestBasePointArithFunction · 0.76
TestMarshalingFuncsFunction · 0.64