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 836B

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