def attempt
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
113# step h.3: k = bits2int(T) with T = V, used when 1 <= k < n
114def attempt(+one: Nat, +e: Nat, +d: Nat, +v: List<&2, U32>) -> Attempt:
115 +k = CV.os2ip(v)
116 attempt_ok(one, e, d, k, scalar_ok(one, k))