UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 931 B
{"version":3,"file":"get-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getEntropy` method.\n */\nexport type GetEntropyParams = {\n /**\n * The version of the entropy to retrieve. This is used for backwards\n * compatibility. As of now, only version 1 is supported.\n */\n version: 1;\n\n /**\n * The optional salt to use when deriving the entropy.\n */\n salt?: string | undefined;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The result returned by the `snap_getEntropy` method.\n */\nexport type GetEntropyResult = Hex;\n"]}