ExpansionMap: {
    [key: string]: KeyInfo;
}

An ExpansionMap contains destructured information of a descritptor expression.

For example, this descriptor sh(wsh(andor(pk(0252972572d465d016d4c501887b8df303eee3ed602c056b1eb09260dfa0da0ab2),older(8640),pk([d34db33f/49'/0'/0']tpubDCdxmvzJ5QBjTN8oCjjyT2V58AyZvA1fkmCeZRC75QMoaHcVP2m45Bv3hmnR7ttAwkb2UNYyoXdHVt4gwBqRrJqLUU2JrM43HippxiWpHra/1/2/3/4/*)))) has the following expandedExpression: sh(wsh(andor(pk(@0),older(8640),pk(@1))))

key's are set using this format: @i, where i is an integer starting from 0 assigned by parsing and retrieving keys from the descriptor from left to right.

For the given example, the ExpansionMap is:

 {
'@0': {
keyExpression:
'0252972572d465d016d4c501887b8df303eee3ed602c056b1eb09260dfa0da0ab2'
},
'@1': {
keyExpression:
"[d34db33f/49'/0'/0']tpubDCdxmvzJ5QBjTN8oCjjyT2V58AyZvA1fkmCeZRC75QMoaHcVP2m45Bv3hmnR7ttAwkb2UNYyoXdHVt4gwBqRrJqLUU2JrM43HippxiWpHra/1/2/3/4/*",
keyPath: '/1/2/3/4/*',
originPath: "/49'/0'/0'",
path: "m/49'/0'/0'/1/2/3/4/*",
// Other relevant properties of the type `KeyInfo`: `pubkey`, `ecpair` & `bip32` interfaces, `masterFingerprint`, etc.
}
}

Type declaration