ldwm

Crates.ioldwm
lib.rsldwm
version0.3.0
sourcesrc
created_at2024-01-12 20:01:45.878299
updated_at2024-01-28 22:09:27.099678
descriptionAn LDWM signature parsing and verifying library
homepage
repositoryhttps://github.com/alexhrao/ldwm
max_upload_size
id1097981
size36,571
Alex Rao (alexhrao)

documentation

https://docs.rs/ldwm/latest/ldwm/

README

LDWM

LDWM implementation in pure Rust. This library currently provides verification support; eventually, signing support will also be added.

Verification is #no_std compatible.

Example

use ldwm::{LdwmParams, Winternitz, verify::verify, Signature, SHA256_LEN};
let params = LdwmParams {
    w: Winternitz::W4,
    m: 20,
    h: 2,
    k: 4,
};
let msg = "Hello world!\n".as_bytes();
// `auth_path`, `ots`, and `node_num` as from the RFC
let sig = Signature { auth_path, ots, node_num };
assert!(verify(&params, &sig, key, msg));
Commit count: 0

cargo fmt