Skip to main content

generate_rpc_hash_map

Function generate_rpc_hash_map 

Source
pub fn generate_rpc_hash_map(
    names: &[&str],
    salt: &str,
    hash_length: usize,
    type_hint: bool,
) -> Result<RpcHashMap>
Expand description

Build an RPC hash map from procedure names and a salt. When type_hint is true, hashes use rpc- prefix. hash_length controls the number of hex chars in the hash portion. Detects collisions and retries with modified salt (up to 100 attempts).