File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ An implementation of a peer id
30
30
31
31
``` TypeScript
32
32
import { peerIdFromString } from ' @libp2p/peer-id'
33
- const peer = peerIdFromString (' k51qzi5uqu5dkwkqm42v9j9kqcam2jiuvloi16g72i4i4amoo2m8u3ol3mqu6s ' )
33
+ const peer = peerIdFromString (' 12D3KooWKnDdG3iXw9eTFijk3EWSunZcFi54Zka4wmtqtt6rPxc8 ' )
34
34
35
35
console .log (peer .toCID ()) // CID(bafzaa...)
36
36
console .log (peer .toString ()) // "12D3K..."
Original file line number Diff line number Diff line change 7
7
*
8
8
* ```TypeScript
9
9
* import { peerIdFromString } from '@libp2p/peer-id'
10
- * const peer = peerIdFromString('k51qzi5uqu5dkwkqm42v9j9kqcam2jiuvloi16g72i4i4amoo2m8u3ol3mqu6s ')
10
+ * const peer = peerIdFromString('12D3KooWKnDdG3iXw9eTFijk3EWSunZcFi54Zka4wmtqtt6rPxc8 ')
11
11
*
12
12
* console.log(peer.toCID()) // CID(bafzaa...)
13
13
* console.log(peer.toString()) // "12D3K..."
You can’t perform that action at this time.
0 commit comments