feat: Add getRelayPeerId method for IFluenceClient (#260)

This commit is contained in:
Pavel
2023-02-16 15:33:03 +03:00
committed by GitHub
parent 0e795cb0fc
commit a10278afaa
3 changed files with 14 additions and 2 deletions

View File

@@ -141,15 +141,20 @@ export interface IFluenceClient {
onConnectionStateChange(handler: (state: ConnectionState) => void): ConnectionState;
/**
* Return peers secret key as byte array.
* Return peer's secret key as byte array.
*/
getPeerSecretKey(): Uint8Array;
/**
* Return peers public key as a base58 string (multihash/CIDv0).
* Return peer's public key as a base58 string (multihash/CIDv0).
*/
getPeerId(): string;
/**
* Return relay's public key as a base58 string (multihash/CIDv0).
*/
getRelayPeerId(): string;
// TODO: come up with a working interface for
// - particle creation
// - particle initialization