@metamask/keyring-api
Version:
MetaMask Keyring API
33 lines • 890 B
JavaScript
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