def sign_guard

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/ed25519/top.bend:198

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/top.bend as Top
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as SE

198def sign_guard(+one: Nat, +p: Nat, +d: Nat, +h: List<&2, U32>, +msg: List<&2, U32>, +x: List<&2, U32>, +e: {x == SE.sign_body(one, p, d, h, msg) : List<&2, U32>}) -> {x == SE.sign_with(one, p, d, h, msg) : List<&2, U32>}:
199  match d:
200    case 0n:
201      e
202    case 1n+ +q:
203      e

Uses (5)

Used by (1)