def attempt_ok
import bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsaimport 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{}