@metamask/keyring-api
Version:
MetaMask Keyring API
36 lines • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExportAccountPrivateKeyOptionsStruct = exports.PrivateKeyExportedAccountStruct = void 0;
const superstruct_1 = require("@metamask/superstruct");
const private_key_1 = require("../private-key.cjs");
/**
* Struct for {@link PrivateKeyExportedAccount}.
*/
exports.PrivateKeyExportedAccountStruct = (0, superstruct_1.object)({
/**
* The type of the account export.
*/
type: (0, superstruct_1.literal)('private-key'),
/**
* The private key of the exported account.
*/
privateKey: (0, superstruct_1.string)(),
/**
* The encoding of the exported private key.
*/
encoding: private_key_1.PrivateKeyEncodingStruct,
});
/**
* Struct for {@link ExportAccountPrivateKeyOptions}.
*/
exports.ExportAccountPrivateKeyOptionsStruct = (0, superstruct_1.object)({
/**
* The type of the account export.
*/
type: (0, superstruct_1.literal)('private-key'),
/**
* The encoding of the exported private key.
*/
encoding: private_key_1.PrivateKeyEncodingStruct,
});
//# sourceMappingURL=private-key.cjs.map