def attempt_ok

bend-collections@1.0.0.0 · spec/crypto/secp256k1/ecdsa.bend:108

import bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsa
import Base
import bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend as CV

108def attempt_ok(+one: Nat, +e: Nat, +d: Nat, +k: Nat, ok: Bool) -> Attempt:
109  match ok:
110    case True{}: finish(one, e, d, k, CV.to_affine(p(one), CV.pmul(p(one), k, CV.g(one))))
111    case False{}: Retry{}

Uses (8)

Used by (1)