brorand's People
Forkers
kagami dryajov mfeldman143 hoardinvest jonesdhtx buu700 azeemba swtcca ndchelsea kekby 408dev seve28712 chuga2310 martintsan pvtruongbrorand's Issues
Brorand & Other platforms
Hello @indutny
Hope you well. I was working on elliptic on Cordova-like platform (ios & android) and got an error here https://github.com/indutny/brorand/blob/master/index.js#L21 L22
rand.getByte() & rand.getBytes() are not supported
We know why but i wonder if you are aware to introduce other plateform in brorand such-as expo-random or maybe a native implementation for mobile plateform ?
This is a only blocking point to use elliptic on mobile plateform.
All the best
Michael
How is this project so popular in npm?
This is just mind blown. I can't find any blog post or discussion about this module, despite that, it still has more than 2 million downloads on npm.
randy
does the code in the catch (with the cryptic reference to randy) actually do anything?
Cannot get getByte of Null
I'm trying to use elliptic.js
in WebWorker. And I've got this error.
TypeError: Не удалось получить свойство "getByte" ссылки, значение которой не определено или является NULL
at _rand (http://localhost:3000/worker/elliptic.js:7493:9)
at generate (http://localhost:3000/worker/elliptic.js:7456:3)
at rand (http://localhost:3000/worker/elliptic.js:7447:3)
at genKeyPair (http://localhost:3000/worker/elliptic.js:5654:3)
at Anonymous function (http://localhost:3000/worker/webcrypto-liner.js:3269:14)
at u (http://localhost:3000/worker/promise.min.js:1:618)
at v (http://localhost:3000/worker/promise.min.js:1:1801)
at f (http://localhost:3000/worker/promise.min.js:1:853)
at EcCrypto.generateKey (http://localhost:3000/worker/webcrypto-liner.js:3262:10)
at Anonymous function (http://localhost:3000/worker/webcrypto-liner.js:2148:14)
I fixed this problem by
- changing
window
toself
https://github.com/indutny/brorand/blob/master/index.js#L19, cause some browsers allows to usecrypto
from WebWorker - adding
pseudoRandomBytes
function ifcrypto.getRandomValues
is not allowed
1.0.7 and later broken in the browser
Commit #7 breaks the use of brorand by bcoin in Cordova.
You never define self anywhere, and it throws TypeError: Cannot read property 'getRandomValues' of undefined
. I don't know how this is supposed to work...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.