chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
18 lines • 575 B
JavaScript
export 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());
}
}
//# sourceMappingURL=CurrencyWallet.js.map