Javascript implementation of the Ristretto255 group operations, built on top of the popular TweetNaCl.js crypto library
by facebookJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
Repository: facebook/ristretto255-js. Description: Javascript implementation of the Ristretto255 group operations, built on top of the popular TweetNaCl.js crypto library Stars: 33, Forks: 8. Primary language: JavaScript. Languages: JavaScript (97.2%), CSS (1.6%), HTML (1.2%). License: MIT. Latest release: v0.1.3 (2y ago). Open PRs: 0, open issues: 1. Last activity: 2y ago. Community health: 75%. Top contributors: kevinlewi, dependabot[bot], ksheedlo.
This PR removes the crypto import from the ristretto255.min.js bundle. The import was added by rollup because rollup detected an import in the tweetnacl source code. However, tweetnacl imports crypto as a sort of environment check, and both browsers and recent versions of Node.js have a crypto global with getRandomValues. In either case it's safe to use the crypto global without trying to import. Demo