TypeError: Cannot read property 'elGamal' of undefined
Author: medi11Created Feb 6, 2021Updated Oct 12, 2021
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); `
Source: bitwiseshiftleft/sjcl