From 40633845952f5dbaa4cb5e622539f29fc5609a3e Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Thu, 29 Nov 2018 21:03:32 +0000 Subject: [PATCH] fix: ipns datastore key --- src/core/ipns/routing/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/ipns/routing/utils.js b/src/core/ipns/routing/utils.js index baa9ac16aa..9dc8b8b992 100644 --- a/src/core/ipns/routing/utils.js +++ b/src/core/ipns/routing/utils.js @@ -3,5 +3,7 @@ const multibase = require('multibase') module.exports.encodeBase32 = (buf) => { - return multibase.encode('base32', buf).slice(1) // slice off multibase codec + const m = multibase.encode('base32', buf).slice(1) // slice off multibase codec + + return m.toString().toUpperCase() // should be uppercase for interop with go }