How to use the ripple-lib.sjcl.codec 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 / rippled-historical-database / lib / ledgerParser / memos.js View on Github external
function decodeHex(data) {
  return sjcl.codec.utf8String.fromBits(sjcl.codec.hex.toBits(data));
}
github ripple / ripple-rest / api / transaction / sign.js View on Github external
function computeSignature(txJSON, keypair) {
  var signature = keypair.sign(signingHash(txJSON));
  return sjcl.codec.hex.fromBits(signature).toUpperCase();
}