Curve.os2ip_go: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend as Curve Lines 194-198 of bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend&start_line=194&end_line=198 import Base import bend-collections@1.0.0.0/spec/lib/common.bend as C # OS2IP (big-endian) def os2ip_go(bs: List<&2, U32>, acc: Nat) -> Nat: match bs: case Nil{}: acc case b <> t: os2ip_go(t, Nat.add(C.shift(8n, acc), byte(b))) 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=bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend&name=byte https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/lib/common.bend&name=shift