libvctrl_core 3.2.0

Reference implementations of the libvctrl contracts (in-memory store, SHA-512 hasher, binary codec)
Documentation
1
2
3
4
5
use libvctrl_handler::{Hash, VctrlError};

pub const fn make_hash(byte: u8) -> Result<Hash, VctrlError> {
    Hash::from_bytes(&[byte; 64])
}