UNPKG

@metamask/keyring-api

Version:
33 lines 890 B
import { literal, object, string } from "@metamask/superstruct"; import { PrivateKeyEncodingStruct } from "../private-key.mjs"; /** * Struct for {@link PrivateKeyExportedAccount}. */ export const PrivateKeyExportedAccountStruct = object({ /** * The type of the account export. */ type: literal('private-key'), /** * The private key of the exported account. */ privateKey: string(), /** * The encoding of the exported private key. */ encoding: PrivateKeyEncodingStruct, }); /** * Struct for {@link ExportAccountPrivateKeyOptions}. */ export const ExportAccountPrivateKeyOptionsStruct = object({ /** * The type of the account export. */ type: literal('private-key'), /** * The encoding of the exported private key. */ encoding: PrivateKeyEncodingStruct, }); //# sourceMappingURL=private-key.mjs.map