| Crates.io | ubl-crypto |
| lib.rs | ubl-crypto |
| version | 0.1.0 |
| created_at | 2026-01-10 16:35:24.539427+00 |
| updated_at | 2026-01-10 16:35:24.539427+00 |
| description | UBL crypto helpers: SK wrapper, KID, HMAC, did:key, batch verify for Universal Business Ledger. |
| homepage | https://logline.foundation |
| repository | https://github.com/LogLine-Foundation/logline-workspace |
| max_upload_size | |
| id | 2034410 |
| size | 30,644 |
Crypto primitives for the LogLine Workspace.
blake3_hex — BLAKE3 hash → hex stringblake3_cid — BLAKE3 hash → Cid32 (ubl-types)blake3_cid_chunks — Incremental BLAKE3 → Cid32SecretKey, Keypair — Key management with zeroizesign_cid_hex, verify_cid_hex — Sign/verify CID hex stringssign_bytes, verify_bytes — Sign/verify with ubl-types wrappersderive_public_bytes — Derive PublicKeyBytes from secret seedhmac_sign, hmac_verify — HMAC-SHA256 with base64urldid_key_encode_ed25519, did_key_decode_ed25519 — Ed25519 DID encodingkey_id_v1, key_id_v2 — Key identifier formats[dependencies]
ubl-crypto = "0.3"
use ubl_crypto::{blake3_cid, derive_public_bytes, sign_bytes, verify_bytes};
// BLAKE3 → Cid32
let cid = blake3_cid(b"hello");
println!("cid = {cid}");
// Ed25519 with fixed seed (deterministic)
let sk = [7u8; 32];
let pk = derive_public_bytes(&sk);
let sig = sign_bytes(b"message", &sk);
assert!(verify_bytes(b"message", &pk, &sig));
MIT OR Apache-2.0 © LogLine Foundation