def CrSign.keypair

bend-osdev-crypto@0.1.0.0 · sign.bend:34

import bend-osdev-crypto@0.1.0.0/sign.bend as Sign
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

34# The key pair of a secret key's bytes
35def CrSign.keypair(~SK: Data, ~PK: Data, ~secret: B.Octets -> Result<&2, &2, Cr.CrError, SK>, ~public: SK -> PK, o: B.Octets) -> Result<&2, &2, Cr.CrError, CrKeypair<SK, PK>>:
36  Result.map(&2, &2, Cr.CrError, SK, CrKeypair<SK, PK>, +sk => CrKeypair{sk, public(sk)}, secret(o))

Uses (5)

Used by (0)

No other definition uses this definition.