def pubkey_d

bend-collections@1.0.0.0 · src/crypto/secp256k1/schnorr.bend:105

import bend-collections@1.0.0.0/src/crypto/secp256k1/schnorr.bend as Schnorr
import Base
import bend-collections@1.0.0.0/src/crypto/secp256k1/point.bend as P

105def pubkey_d(m: Maybe<&2, List<&2, Nat>>) -> Maybe<&2, List<&2, U32>>:
106  match m:
107    case None{}: None{}
108    case Some{d}: Some{pubkey_aff(P.to_affine(P.mul(d, P.g())))}

Uses (8)

Used by (1)