Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: ipns datastore key (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and Alan Shaw committed Nov 30, 2018
1 parent 548504d commit a39770e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/ipns/routing/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a39770e

Please sign in to comment.