| Crates.io | solana-nostd-sha256 |
| lib.rs | solana-nostd-sha256 |
| version | 0.1.3 |
| created_at | 2024-09-12 02:49:52.146778+00 |
| updated_at | 2024-09-12 10:24:50.240719+00 |
| description | A more efficient implementation of Sha256 for SVM |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1372443 |
| size | 6,004 |
A more efficient implementation of Sha256 for SVM.
cargo add solana-nostd-sha256
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-sha256 | hashv(&[b"test"]) | 100 |
| nostd-sha256 | hash(b"test") | 105 |
| nostd-sha256 | hash_ref("test") | 105 |
| solana-program | hashv(&[b"test"]) | 120 |
| solana-program | hash(b"test") | 123 |