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.

verifyPaymentChannelClaim.js 655B

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 verifyPaymentChannelClaim(channel, amount, signature, publicKey) {
  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.verify)(signingData, signature, publicKey);
  12. }
  13. exports.default = verifyPaymentChannelClaim;
  14. //# sourceMappingURL=verifyPaymentChannelClaim.js.map