Skip to content

Latest commit

 

History

History
57 lines (28 loc) · 1008 Bytes

client.fakeentryhash.md

File metadata and controls

57 lines (28 loc) · 1008 Bytes

Home > @holochain/client > fakeEntryHash

fakeEntryHash() function

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>;

Parameters

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.

**Returns:**

Promise<EntryHash>

An EntryHash.