@airgap/etherlink
Version:
The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.
24 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.newExtendedPublicKey = exports.newPublicKey = exports.newExtendedSecretKey = exports.newSecretKey = void 0;
function newSecretKey(value, format) {
if (format === void 0) { format = 'encoded'; }
return { type: 'priv', value: value, format: format };
}
exports.newSecretKey = newSecretKey;
function newExtendedSecretKey(value, format) {
if (format === void 0) { format = 'encoded'; }
return { type: 'xpriv', value: value, format: format };
}
exports.newExtendedSecretKey = newExtendedSecretKey;
function newPublicKey(value, format) {
if (format === void 0) { format = 'encoded'; }
return { type: 'pub', value: value, format: format };
}
exports.newPublicKey = newPublicKey;
function newExtendedPublicKey(value, format) {
if (format === void 0) { format = 'encoded'; }
return { type: 'xpub', value: value, format: format };
}
exports.newExtendedPublicKey = newExtendedPublicKey;
//# sourceMappingURL=key.js.map