You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

signPaymentChannelClaim.js 627B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const ripple_binary_codec_1 = require("ripple-binary-codec");
  4. const ripple_keypairs_1 = require("ripple-keypairs");
  5. const xrpConversion_1 = require("./xrpConversion");
  6. function signPaymentChannelClaim(channel, amount, privateKey) {
  7. const signingData = (0, ripple_binary_codec_1.encodeForSigningClaim)({
  8. channel,
  9. amount: (0, xrpConversion_1.xrpToDrops)(amount),
  10. });
  11. return (0, ripple_keypairs_1.sign)(signingData, privateKey);
  12. }
  13. exports.default = signPaymentChannelClaim;
  14. //# sourceMappingURL=signPaymentChannelClaim.js.map