Home > @holochain/client > sliceHashType
Get hash type (initial 3 bytes) from a hash.
From https://github.com/holochain/holochain/blob/develop/crates/holo\_hash/src/hash\_type/primitive.rs
Signature:
export declare function sliceHashType(hash: HoloHash): Uint8Array;|
Parameter |
Type |
Description |
|---|---|---|
|
hash |
The full 39 byte hash. |
Returns:
Uint8Array
The initial 3 bytes of the hash.