chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
22 lines • 719 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrencyWallet = void 0;
class CurrencyWallet {
utils;
transports;
constructor(utils, transports) {
this.utils = utils;
this.transports = transports;
}
async getPublicKey() {
return (await this.transports.getPublicKeyProvider(this.utils.currencyInfo.id))();
}
async getPrivateKey() {
return (await this.transports.getPrivateKeyProvider(this.utils.currencyInfo.id))();
}
async signMessage(message) {
return this.utils.signMessage(message, await this.getPrivateKey());
}
}
exports.CurrencyWallet = CurrencyWallet;
//# sourceMappingURL=CurrencyWallet.js.map