def of_be
import bend-collections@1.0.0.0/src/crypto/secp256k1/bytes.bend as Bytesimport Base
16# the 16 limbs of a 32-byte big-endian string (SEC 1 OS2IP)
17def of_be(bs: List<&2, U32>) -> List<&2, Nat>:
18 limbs_le(List.reverse(&2, U32, bs))
Uses (5)
Used by (12)
- bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa:hash_scalar
- bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa:attempt
- bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa:secret
- bend-collections@1.0.0.0/src/crypto/secp256k1/schnorr:secret
- bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa:recover_sig
- …