MCPcopy Create free account
hub / github.com/DOSNetwork/core / load4

Function load4

group/edwards25519/fe.go:71–77  ·  view source on GitHub ↗
(in []byte)

Source from the content-addressed store, hash-verified

69}
70
71func load4(in []byte) int64 {
72 r := int64(in[0])
73 r |= int64(in[1]) << 8
74 r |= int64(in[2]) << 16
75 r |= int64(in[3]) << 24
76 return r
77}
78
79func feFromBytes(dst *fieldElement, src []byte) {
80 h0 := load4(src[:])

Callers 9

scAddFactFunction · 0.85
scMulFactFunction · 0.85
scSubFactFunction · 0.85
scMulAddFunction · 0.85
scAddFunction · 0.85
scSubFunction · 0.85
scMulFunction · 0.85
scReduceFunction · 0.85
feFromBytesFunction · 0.85

Calls

no outgoing calls

Tested by 3

scAddFactFunction · 0.68
scMulFactFunction · 0.68
scSubFactFunction · 0.68