Cryptographic primitives¶
PublicKey
¶
Public key for public-key cryptography.
type PublicKey := | Curve25519PubKey ByteString;
instance
PublicKeyOrd : Ord PublicKey :=
mkOrd@{
cmp := \{_ _ := Equal};
};
PrivateKey
¶
Private key for public-key cryptography.
type PrivateKey := | Curve25519PrivKey ByteString;
instance
PrivateKeyOrd : Ord PrivateKey :=
mkOrd@{
cmp := \{_ _ := Equal};
};
SecretKey
¶
Secret key for secret-key cryptography.
type SecretKey := | ChaCha20Key;
Signature
¶
Cryptographic signature.
type Signature := | Ed25519Signature ByteString;
Digest
¶
Message digest. Output of a cryptographic hash function.
type Digest := | Blake3Digest ByteString;