Home > @holochain/client > fakeAgentPubKey
Generate a valid agent key of a non-existing agent.
Signature:
export declare function fakeAgentPubKey(coreByte?: number | undefined): Promise<AgentPubKey>;
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<AgentPubKey>
An AgentPubKey.