Skip to content

Commit

Permalink
pkg: fix browserify build for x25519/x448.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Sep 11, 2019
1 parent 6822a17 commit 145e9f4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/x25519-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* x25519.js - x25519 for bcrypto
* Copyright (c) 2017-2019, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcrypto
*/

'use strict';

module.exports = require('./js/x25519');
9 changes: 9 additions & 0 deletions lib/x448-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* x448.js - x448 for bcrypto
* Copyright (c) 2017-2019, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcrypto
*/

'use strict';

module.exports = require('./js/x448');
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
"./lib/sha512": "./lib/sha512-browser.js",
"./lib/sha3": "./lib/sha3-browser.js",
"./lib/siphash": "./lib/siphash-browser.js",
"./lib/whirlpool": "./lib/whirlpool-browser.js"
"./lib/whirlpool": "./lib/whirlpool-browser.js",
"./lib/x25519": "./lib/x25519-browser.js",
"./lib/x448": "./lib/x448-browser.js"
}
}

0 comments on commit 145e9f4

Please sign in to comment.