diff --git a/packages/peer-id/README.md b/packages/peer-id/README.md index 4a6584a3ab..56352957cf 100644 --- a/packages/peer-id/README.md +++ b/packages/peer-id/README.md @@ -30,7 +30,7 @@ An implementation of a peer id ```TypeScript import { peerIdFromString } from '@libp2p/peer-id' -const peer = peerIdFromString('k51qzi5uqu5dkwkqm42v9j9kqcam2jiuvloi16g72i4i4amoo2m8u3ol3mqu6s') +const peer = peerIdFromString('12D3KooWKnDdG3iXw9eTFijk3EWSunZcFi54Zka4wmtqtt6rPxc8') console.log(peer.toCID()) // CID(bafzaa...) console.log(peer.toString()) // "12D3K..." diff --git a/packages/peer-id/src/index.ts b/packages/peer-id/src/index.ts index 200dea6eb1..b098c9a696 100644 --- a/packages/peer-id/src/index.ts +++ b/packages/peer-id/src/index.ts @@ -7,7 +7,7 @@ * * ```TypeScript * import { peerIdFromString } from '@libp2p/peer-id' - * const peer = peerIdFromString('k51qzi5uqu5dkwkqm42v9j9kqcam2jiuvloi16g72i4i4amoo2m8u3ol3mqu6s') + * const peer = peerIdFromString('12D3KooWKnDdG3iXw9eTFijk3EWSunZcFi54Zka4wmtqtt6rPxc8') * * console.log(peer.toCID()) // CID(bafzaa...) * console.log(peer.toString()) // "12D3K..."