def pow_bits

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

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

235def pow_bits(+x: List<&2, U32>, bs: List<&2, Bool>, acc: List<&2, U32>) -> List<&2, U32>:
236  match x:
237    case Nil{}:
238      acc
239    case Con{h, t}:
240      match bs:
241        case Nil{}:
242          acc
243        case Con{b, bt}:
244          pow_bits(x, bt, pow_bit(b, x, acc))

Uses (4)

Used by (3)