Skip to content

Cryptographic Primitives

Juvix imports

module arch.node.types.crypto;

import prelude open;

Cryptographic primitives

Public key

type PublicKey := Curve25519PubKey ByteString;

instance
PublicKeyOrd : Ord PublicKey :=
mkOrd@{
cmp := \{_ _ := Equal};
};

Private key

type PrivateKey := Curve25519PrivKey ByteString;

instance
PrivateKeyOrd : Ord PrivateKey :=
mkOrd@{
cmp := \{_ _ := Equal};
};

Signature

Cryptographic signature.

type Signature := Ed25519Signature ByteString;

Digest

Message digest. Output of a cryptographic hash function.

type Digest := Blake3Digest ByteString;