Functions
generatePrivateKey
- generatePrivateKey(): Uint8Array
generateSymmetricKey
- generateSymmetricKey(): Uint8Array
getNodesFromHostedJson
- getNodesFromHostedJson(path?: string[], url?: string, wantedNumber?: number): Promise<Multiaddr[]>
Parameters
path: string[] = ...
url: string = 'https://fleets.status.im/'
wantedNumber: number = DefaultWantedNumber
Returns Promise<Multiaddr[]>
getPublicKey
- getPublicKey(privateKey: Uint8Array | Buffer): Uint8Array
Parameters
privateKey: Uint8Array | Buffer
Returns Uint8Array
Generate a new private key to be used for asymmetric encryption.
Use getPublicKey to get the corresponding Public Key.