Mcrypto v0.2.0 Mcrypto.Signer protocol View Source
Provide sign functionality
Link to this section Summary
Functions
create a keypair for a given preset
sign a piece of data with secret key
craete pk based on sk
verify data against a signature with public key
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: Mcrypto.Signer.t()
t() :: Mcrypto.Signer.t()
Link to this section Functions
Link to this function
keypair(signer) View Source
create a keypair for a given preset
Link to this function
sign!(signer, data, sk) View Source
sign a piece of data with secret key
Link to this function
sk_to_pk(signer, sk) View Source
craete pk based on sk
Link to this function
verify(signer, data, signature, pk) View Source
verify data against a signature with public key