def low_bit

bend-collections@1.0.0.0 · src/crypto/curve25519/field.bend:307

import bend-collections@1.0.0.0/src/crypto/curve25519/field.bend as Field
import Base

307# the parity of the canonical representative (RFC 8032 x_0)
308def low_bit(xs: List<&2, U32>) -> U32:
309  match xs:
310    case Nil{}:
311      0
312    case Con{l, lt}:
313      U32.and(l, 1)

Uses (3)

Used by (1)