def pow_p58
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as Fieldimport Base
250# x^((p - 5) / 8) = x^(2^252 - 3): 250 one bits, then 0 1
251def pow_p58(+x: List<&2, U32>) -> List<&2, U32>:
252 pow_bits(x, [False{}, True{}], pow_ones(x, 249n, x))
Uses (5)
Used by (10)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/point:dec_y
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/pow:p58_okb
- 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/rel:r_p58
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/rel:rc_p58
- …