From a39770ef5309f7b0f542738c8c10b0a103297b18 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 30 Nov 2018 17:19:47 +0000 Subject: [PATCH] fix: ipns datastore key (#1741) --- 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 }