How to use the multiplyUncompressed function from bindings

Find comprehensive JavaScript bindings.multiplyUncompressed code examples handpicked from public code repositorys.

15
16
17
18
19
20
21
22
23
24
  if (Buffer.isBuffer(x) && x.length !== 32)
    throw new Error('if x is a buffer, it must be 32 bytes')
  var u1 = p1.toUncompressedPubKey();
  if (typeof x === 'number' || typeof x === 'string')
    x = (new bignum(x)).toBuffer({size: 32});
  var pubKey = CPPKey.multiplyUncompressed(u1, x);
  return Point.fromUncompressedPubKey(pubKey);
};

module.exports = Point;
fork icon0
star icon5
watch icon4

+ 5 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)