-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'elGamal' of undefined #423
Comments
In order to enable some sjlc modules it is required to re-compile the library yourself.
Then reference your build of sjlc in your code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a code snippet. whenever I execute it I get the above error
`const sjcl = require("sjcl");
var gkey1 = sjcl.ecc.elGamal.generateKeys(384, 10);
var alicekeys = gkey1.pub.kem(10);
var gkey2 = sjcl.ecc.elGamal.generateKeys(384, 10);
var bobkeys = gkey2.pub.kem(10);
var aliceshared = alicekeys.key;
var bobshared = gkey2.sec.unkem(alicekeys.tag);
`
The text was updated successfully, but these errors were encountered: