UNPKG

@metamask/keyring-api

Version:
28 lines 948 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateAccountPrivateKeyOptionsStruct = void 0; const superstruct_1 = require("@metamask/superstruct"); const account_1 = require("../../account.cjs"); const private_key_1 = require("../private-key.cjs"); /** * Struct for {@link CreateAccountPrivateKeyOptions}. */ exports.CreateAccountPrivateKeyOptionsStruct = (0, superstruct_1.object)({ /** * The type of the options. */ type: (0, superstruct_1.literal)('private-key:import'), /** * The encoded private key to be imported. */ privateKey: (0, superstruct_1.string)(), /** * The encoding of the private key. */ encoding: private_key_1.PrivateKeyEncodingStruct, /** * The account type of the imported account. */ accountType: (0, superstruct_1.exactOptional)(account_1.KeyringAccountTypeStruct), }); //# sourceMappingURL=private-key.cjs.map