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

Method Decode

crypto/ed25519/ecmath/point.go:92–95  ·  view source on GitHub ↗
(e [32]byte)

Source from the content-addressed store, hash-verified

90}
91
92func (z *Point) Decode(e [32]byte) (*Point, bool) {
93 ok := (*edwards25519.ExtendedGroupElement)(z).FromBytes(&e)
94 return z, ok
95}
96
97func (z *Point) ConstTimeEqual(x *Point) bool {
98 xe := x.Encode()

Callers 9

UnmarshalTextMethod · 0.80
UnmarshalTextMethod · 0.80
UnmarshalTextMethod · 0.80
UnmarshalTextMethod · 0.80
TestKeccakKatsFunction · 0.80
UnmarshalTextMethod · 0.80
UnmarshalTextMethod · 0.80
mustDecodeHexFunction · 0.80
ReadMethod · 0.80

Calls 1

FromBytesMethod · 0.45

Tested by 2

TestKeccakKatsFunction · 0.64
mustDecodeHexFunction · 0.64