Skip to content

Commit

Permalink
Use nacl-fast in the require call
Browse files Browse the repository at this point in the history
  • Loading branch information
yflory committed May 17, 2023
1 parent c8b76b8 commit ce594cb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ We assume:
};

if (typeof(module) !== 'undefined' && module.exports) {
module.exports = factory(require('tweetnacl'));
module.exports = factory(require('tweetnacl/nacl-fast'));
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define([
'/bower_components/tweetnacl/nacl-fast.min.js',
Expand Down
24 changes: 20 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chainpad-crypto",
"version": "0.2.7",
"version": "0.2.8",
"description": "",
"main": "crypto.js",
"scripts": {
Expand Down

0 comments on commit ce594cb

Please sign in to comment.