Skip to content

Commit

Permalink
encoding: bech32 and bech32m for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 29, 2021
1 parent 8e0c971 commit d0acb03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/encoding/bech32-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

'use strict';

module.exports = require('../js/bech32');
const BECH32 = require('../js/bech32');
module.exports = new BECH32(1);
10 changes: 10 additions & 0 deletions lib/encoding/bech32m-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!
* bech32m.js - bech32m for bcrypto
* Copyright (c) 2021, the bcoin developers (MIT License).
* https://github.com/bcoin-org/bcrypto
*/

'use strict';

const BECH32 = require('../js/bech32');
module.exports = new BECH32(0x2bc830a3);

0 comments on commit d0acb03

Please sign in to comment.