Skip to content

Commit

Permalink
feat(base58.js): Introduce simple base58 wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed May 30, 2018
1 parent ab5d54d commit a21649b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base58.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const base58 = require('base-x')(
'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
)

function encode(value) {
return base58.encode(value)
}

function decode(value) {
return base58.decode(value)
}

module.exports = {
encode,
decode,
}

0 comments on commit a21649b

Please sign in to comment.