UNPKG

@metamask/keyring-api

Version:
57 lines 1.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateAccountBip44DiscoverOptionsStruct = exports.CreateAccountBip44DeriveIndexOptionsStruct = exports.CreateAccountBip44DerivePathOptionsStruct = void 0; const superstruct_1 = require("@metamask/superstruct"); const derivation_1 = require("../../derivation.cjs"); /** * Struct for {@link CreateAccountBip44DerivePathOptions}. */ exports.CreateAccountBip44DerivePathOptionsStruct = (0, superstruct_1.object)({ /** * Type of the options. */ type: (0, superstruct_1.literal)('bip44:derive-path'), /** * ID of the entropy source to be used to derive the account. */ entropySource: (0, superstruct_1.string)(), /** * BIP-44 derivation path to be used to derive the account. */ derivationPath: derivation_1.DerivationPathStruct, }); /** * Struct for {@link CreateAccountBip44DeriveIndexOptions}. */ exports.CreateAccountBip44DeriveIndexOptionsStruct = (0, superstruct_1.object)({ /** * The type of the options. */ type: (0, superstruct_1.literal)('bip44:derive-index'), /** * ID of the entropy source to be used to derive the account. */ entropySource: (0, superstruct_1.string)(), /** * The index of the account group to be derived. */ groupIndex: (0, superstruct_1.number)(), }); /** * Struct for {@link CreateAccountBip44DiscoverOptions}. */ exports.CreateAccountBip44DiscoverOptionsStruct = (0, superstruct_1.object)({ /** * The type of the options. */ type: (0, superstruct_1.literal)('bip44:discover'), /** * ID of the entropy source to be used to derive the account. */ entropySource: (0, superstruct_1.string)(), /** * The index of the account group to be derived. */ groupIndex: (0, superstruct_1.number)(), }); //# sourceMappingURL=bip44.cjs.map