def Sign.keypair

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/sign.bend:16

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sign.bend as Sign
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend as FS
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as SE
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sign.bend as SG

16def Sign.keypair(+one: Nat, +h1: {one == 1n : Nat}, +seed: List<&2, U32>, +hs: {FS.tight(seed) == True{} : Bool}) -> Type:
17  {SG.generate_keypair(seed) == Some{SG.Keypair{seed, SE.public_key(one, seed)}} : Maybe<&2, SG.Keypair>}

Uses (9)

Used by (1)