Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Pallas Crypto

Cryptographic primitives required to participate in the Cardano protocol: Blake2b hashing, Ed25519 signing (regular and BIP32-extended), VRF, KES forward-secure signatures, and nonce evolution.

Usage

use pallas_crypto::hash::Hasher;

let mut h = Hasher::<256>::new();
h.input(b"hello");
let digest = h.finalize();
println!("blake2b-256 = {}", digest);

Overview

  • hashHash<N> and Hasher<N> over Blake2b. The const generic is in bits, so Hasher::<224> and Hasher::<256> cover the common Cardano digest sizes.
  • key::ed25519 — regular and extended Ed25519 key pairs, signing and verification.
  • kes — KES (Key Evolving Signature) primitives used by block producers.
  • nonce — epoch / chain-nonce evolution helpers.
  • memsec — secure-memory utilities used to wipe key material.

Status

  • Blake2b 256
  • Blake2b 224
  • Ed25519 asymmetric key pair and EdDSA
  • Ed25519 Extended asymmetric key pair
  • BIP32-Ed25519 key derivation
  • BIP39 mnemonics
  • VRF
  • KES
  • SECP256k1
  • Nonce calculations

Further reading