mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-07-31 23:11:56 +00:00
feat: Add getRelayPeerId
method for IFluenceClient
(#260)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user