def public_d
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsaimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/curve.bend as CV
154def public_d(+one: Nat, compressed: Bool, +d: Nat, ok: Bool) -> Maybe<&2, List<&2, U32>>:
155 match ok:
156 case True{}: Some{pk_of(one, compressed, CV.pmul(p(one), d, CV.g(one)))}
157 case False{}: None{}
Uses (9)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa:public_key
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/ppub:public_key_v
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/ppub:pub_len
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/ppub:pub_ok