Closed mkg20001 closed 4 years ago
require('peer-id').create({type: 'rsa', size: 2048}, (e, i) => {i.pubKey.encrypt(Buffer.from('data'), console.log)})
Unsure if this is my code that's broken or this library
Related PR: https://github.com/libp2p/js-libp2p-crypto/pull/125
Unsure if this is my code that's broken or this library