Module
Crypt.NaCl.Sign
- Package
- purescript-crypt-nacl
- Repository
- throughnothing/purescript-crypt-nacl
#generateSignKeyPair Source
generateSignKeyPair :: forall e. Eff (naclRandom :: NACL_RANDOM | e) SignKeyPairGenerate a random key pair for signing messages
#getSignKeyPair Source
getSignKeyPair :: SignSecretKey -> SignKeyPairGet the signing keypair for a given SignSecretKey
#getSignPublicKey Source
getSignPublicKey :: SignKeyPair -> SignPublicKeyGet the SignPublicKey for a given SignKeyPair
#getSignSecretKey Source
getSignSecretKey :: SignKeyPair -> SignSecretKeyGet the SignSecretKey for a given SignKeyPair
#sign Source
sign :: Message -> SignSecretKey -> SignedMessageSign a Message using the given SignSecretKey.
Returns the contents of the message, signed, as a SignedMessage
#signDetached Source
signDetached :: Message -> SignSecretKey -> SignatureLike sign, but only returns the Signature, not the message contents
#verifyDetached Source
verifyDetached :: Message -> Signature -> BooleanVerifies a Signature, given the Message
#signOpen Source
signOpen :: SignedMessage -> SignPublicKey -> Maybe MessageVarifies the signature contained in a SignedMessage against a given
SignPublicKey. Returns Just Message if the signature verifies,
or Nothing otherwise.