How to use the ripple-lib.sjcl.bn function in ripple-lib

To help you get started, we’ve selected a few ripple-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ripple / ripple-lib / test / sjcl-montgomery.js View on Github external
function testExp(vec) {
  const actual = normalizeFix(new sjcl.bn(vec.g).powermod(
    new sjcl.bn(vec.e), new sjcl.bn(vec.m)));
  const expected = new sjcl.bn(vec.r);
  assert.strictEqual(actual.toString(), expected.toString());
}
github ripple / ripple-lib / test / sjcl-montgomery.js View on Github external
function testExp(vec) {
  const actual = normalizeFix(new sjcl.bn(vec.g).powermod(
    new sjcl.bn(vec.e), new sjcl.bn(vec.m)));
  const expected = new sjcl.bn(vec.r);
  assert.strictEqual(actual.toString(), expected.toString());
}
github ripple / ripple-lib / test / sjcl-montgomery.js View on Github external
function testExp(vec) {
  const actual = normalizeFix(new sjcl.bn(vec.g).powermod(
    new sjcl.bn(vec.e), new sjcl.bn(vec.m)));
  const expected = new sjcl.bn(vec.r);
  assert.strictEqual(actual.toString(), expected.toString());
}