Field.value: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend as Field Lines 33-39 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend&start_line=33&end_line=39 import Base import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C # decodeLittleEndian (RFC 7748 section 5): sum of b_i 2^(8 i) def value(xs: List<&2, U32>) -> Nat: match xs: case Nil{}: 0n case Con{h, t}: Nat.add(U32.to_nat(h), C.shift(8n, value(t))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend&name=shift