UNPKG

@metamask/keyring-api

Version:
54 lines 1.48 kB
import { literal, number, object, string } from "@metamask/superstruct"; import { DerivationPathStruct } from "../../derivation.mjs"; /** * Struct for {@link CreateAccountBip44DerivePathOptions}. */ export const CreateAccountBip44DerivePathOptionsStruct = object({ /** * Type of the options. */ type: literal('bip44:derive-path'), /** * ID of the entropy source to be used to derive the account. */ entropySource: string(), /** * BIP-44 derivation path to be used to derive the account. */ derivationPath: DerivationPathStruct, }); /** * Struct for {@link CreateAccountBip44DeriveIndexOptions}. */ export const CreateAccountBip44DeriveIndexOptionsStruct = object({ /** * The type of the options. */ type: literal('bip44:derive-index'), /** * ID of the entropy source to be used to derive the account. */ entropySource: string(), /** * The index of the account group to be derived. */ groupIndex: number(), }); /** * Struct for {@link CreateAccountBip44DiscoverOptions}. */ export const CreateAccountBip44DiscoverOptionsStruct = object({ /** * The type of the options. */ type: literal('bip44:discover'), /** * ID of the entropy source to be used to derive the account. */ entropySource: string(), /** * The index of the account group to be derived. */ groupIndex: number(), }); //# sourceMappingURL=bip44.mjs.map