limestone-client 0.1.0

A Rust client SDK for Limestone program
Documentation
1
2
3
4
5
6
7
8
use solana_program::keccak::{hashv, HASH_BYTES};

/// Returns the bytes resulting from hashing of the seeds' bytes.
///
/// The has is computed as the keccak256 hash of the seeds' bytes.
pub fn compute(seeds: &[&[u8]]) -> [u8; HASH_BYTES] {
    hashv(seeds).0
}