def eb
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow.bend as Powimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as WD
64# the exponent of x contributed by the bits
65def eb(+one: Nat, bs: List<&2, Bool>) -> Nat:
66 match bs:
67 case Nil{}:
68 0n
69 case Con{b, +bt}:
70 Nat.add(Nat.mul(bexp(b), WD.sc(blen(bt), one)), eb(one, bt))
Uses (8)
Used by (11)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/pcodec:r_sqm1
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow:chain_val
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow:inv_val
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow:p58_val
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow:eb_inv
- …