From 6844e1f9135a3af1f0441c53d4dd07910fc81fbe Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sat, 29 Dec 2018 14:00:35 +0100 Subject: [PATCH] [fix] #1323 bs58 package now requires bytes to be a Buffer --- app/lib/common-libs/crypto/keyring.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/common-libs/crypto/keyring.ts b/app/lib/common-libs/crypto/keyring.ts index f4db4b383..9f9f31e74 100644 --- a/app/lib/common-libs/crypto/keyring.ts +++ b/app/lib/common-libs/crypto/keyring.ts @@ -72,8 +72,8 @@ export function randomKey() { } const keypair = nacl.sign.keyPair.fromSeed(byteseed) return new Key( - Base58encode(keypair.publicKey), - Base58encode(keypair.secretKey) + Base58encode(new Buffer(keypair.publicKey)), + Base58encode(new Buffer(keypair.secretKey)) ) } -- GitLab