Rename toB58String to getPeerId (#178)

This commit is contained in:
Pavel
2022-09-05 19:27:19 +03:00
committed by GitHub
parent 1ca867b802
commit 7408b07ed8
12 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@fluencelabs/keypair",
"version": "0.1.0",
"version": "0.2.0",
"description": "Keypair implementation for Fluence JS Peer",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",

View File

@ -49,7 +49,7 @@ export class KeyPair {
return new KeyPair(lib2p2Pid);
}
toB58String(): string {
getPeerId(): string {
return this.Libp2pPeerId.toB58String();
}