UNPKG

160 BJavaScriptView Raw
1'use strict'
2
3module.exports = (peer) => {
4 if (peer.id && (typeof peer.id.toB58String === 'function')) {
5 peer = peer.id
6 }
7 return peer.toB58String()
8}