Crates.io | solana-nostd-blake3 |
lib.rs | solana-nostd-blake3 |
version | 0.1.2 |
source | src |
created_at | 2024-09-12 07:40:43.600757 |
updated_at | 2024-09-12 10:15:10.611789 |
description | A more efficient implementation of Blake3 for SVM |
homepage | |
repository | |
max_upload_size | |
id | 1372555 |
size | 5,999 |
A more efficient implementation of Blake3 for SVM.
cargo add solana-nostd-blake3
hash_ref
which takes in any type that implements <AsRef<[u8]>>
Hash
struct. Returns [u8;32]
directly.hash_into
to let you hash directly into a mutable buffer.library | function | CU cost |
---|---|---|
nostd-blake3 | hashv(&[b"test"]) | 100 |
nostd-blake3 | hash(b"test") | 105 |
nostd-blake3 | hash_ref("test") | 105 |
solana-program | hashv(&[b"test"]) | 120 |
solana-program | hash(b"test") | 123 |