Skip to content

Latest commit

 

History

History
55 lines (27 loc) · 925 Bytes

client.fakeagentpubkey.md

File metadata and controls

55 lines (27 loc) · 925 Bytes

Home > @holochain/client > fakeAgentPubKey

fakeAgentPubKey() function

Generate a valid agent key of a non-existing agent.

Signature:

export declare function fakeAgentPubKey(coreByte?: number | undefined): Promise<AgentPubKey>;

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

An AgentPubKey.