def public_of

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/ed25519.bend:242

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as Ed25519
import Base

242# the same, a function of d first (d = dconst(one, p) is symbolic, so the
243# checker keeps it a call instead of expanding it on every comparison)
244def public_of(+one: Nat, +p: Nat, d: Nat, +h: List<&2, U32>) -> List<&2, U32>:
245  match d:
246    case 0n:
247      public_body(one, p, 0n, h)
248    case 1n+ +e:
249      public_body(one, p, 1n+e, h)

Uses (4)

Used by (6)