Skip to content
Snippets Groups Projects
Commit 6844e1f9 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1323 bs58 package now requires bytes to be a Buffer

parent 42db30e3
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,8 @@ export function randomKey() { ...@@ -72,8 +72,8 @@ export function randomKey() {
} }
const keypair = nacl.sign.keyPair.fromSeed(byteseed) const keypair = nacl.sign.keyPair.fromSeed(byteseed)
return new Key( return new Key(
Base58encode(keypair.publicKey), Base58encode(new Buffer(keypair.publicKey)),
Base58encode(keypair.secretKey) Base58encode(new Buffer(keypair.secretKey))
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment