willow25 0.5.0-alpha.1

A ready-to-use implementation of the Willow specifications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Computes and prints the signature for the [`default_authorisation_token`].
use ed25519_dalek::{SIGNATURE_LENGTH, Signature};
use willow25::defaults::default_authorisation_token;

fn main() {
    let token = default_authorisation_token();
    let signature = token.signature().clone();
    let inner: Signature = signature.into();
    let bytes: [u8; SIGNATURE_LENGTH] = inner.to_bytes();
    println!("{:?}", bytes);
}