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.

derive.js 846B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.deriveXAddress = exports.deriveAddress = exports.deriveKeypair = void 0;
  4. const ripple_address_codec_1 = require("ripple-address-codec");
  5. const ripple_keypairs_1 = require("ripple-keypairs");
  6. Object.defineProperty(exports, "deriveKeypair", { enumerable: true, get: function () { return ripple_keypairs_1.deriveKeypair; } });
  7. Object.defineProperty(exports, "deriveAddress", { enumerable: true, get: function () { return ripple_keypairs_1.deriveAddress; } });
  8. function deriveXAddress(options) {
  9. const classicAddress = (0, ripple_keypairs_1.deriveAddress)(options.publicKey);
  10. return (0, ripple_address_codec_1.classicAddressToXAddress)(classicAddress, options.tag, options.test);
  11. }
  12. exports.deriveXAddress = deriveXAddress;
  13. //# sourceMappingURL=derive.js.map