@metamask/keyring-api
Version:
MetaMask Keyring API
25 lines • 769 B
JavaScript
import { exactOptional, literal, object, string } from "@metamask/superstruct";
import { KeyringAccountTypeStruct } from "../../account.mjs";
import { PrivateKeyEncodingStruct } from "../private-key.mjs";
/**
* Struct for {@link CreateAccountPrivateKeyOptions}.
*/
export const CreateAccountPrivateKeyOptionsStruct = object({
/**
* The type of the options.
*/
type: literal('private-key:import'),
/**
* The encoded private key to be imported.
*/
privateKey: string(),
/**
* The encoding of the private key.
*/
encoding: PrivateKeyEncodingStruct,
/**
* The account type of the imported account.
*/
accountType: exactOptional(KeyringAccountTypeStruct),
});
//# sourceMappingURL=private-key.mjs.map