Home > @holochain/client > fakeEntryHash
Generate a valid hash of a non-existing entry.
From https://github.com/holochain/holochain/blob/develop/crates/holo\_hash/src/hash\_type/primitive.rs
Signature:
export declare function fakeEntryHash(coreByte?: number | undefined): Promise<EntryHash>;
Parameter |
Type |
Description |
---|---|---|
coreByte |
number | undefined |
(Optional) Optionally specify a byte to repeat for all core 32 bytes. If undefined will generate random core 32 bytes. |
Promise<EntryHash>
An EntryHash.