UNPKG

@metamask/keyring-api

Version:
1 lines 538 B
{"version":3,"file":"derivation.mjs","sourceRoot":"","sources":["../../src/api/derivation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,wBAAwB;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAC/C,gBAAgB,EAChB,kBAAkB,CACnB,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { definePattern } from '@metamask/utils';\n\nexport const DerivationPathStruct = definePattern<`m/${string}`>(\n 'DerivationPath',\n /^m(?:\\/\\d+'?)+$/u,\n);\n\nexport type DerivationPath = Infer<typeof DerivationPathStruct>;\n"]}