def is_zero
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as Fieldimport Base
299# x == 0 in the field: every byte of the canonical form is 0
300def is_zero(+x: List<&2, U32>) -> Bool:
301 U32.is_eq(sum_all(freeze(x), 0), 0)
Uses (6)
Used by (9)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field:eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/canon:is_zero_val
- bend-collections-laws-crypto@1.0.0.0/src/crypto/ed25519/point:dec_root
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/pcodec:iz_rel
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/pdec:dec_fin_rel
- …