Version: 0.1.00.1.10.1.20.1.30.1.40.1.50.2.00.3.00.4.00.4.10.4.20.5.00.5.10.6.00.6.11.0.01.0.11.1.01.1.11.1.21.1.31.1.41.1.51.2.01.2.11.3.01.4.01.4.12.0.02.0.12.0.23.0.0
'use strict'
module.exports = (peer) => {
if (peer.id && (typeof peer.id.toB58String === 'function')) {
peer = peer.id
}
return peer.toB58String()