How are hidden wallets generated?

How are hidden wallets generated from the combination of a seed phrase and a pass phrase? I’m trying to specifically locate the piece of code/algorithm that trezor firmware uses to generate new wallets.

Thanks!

this is specified in BIP-39 (for Single backup): bips/bip-0039.mediawiki at master · bitcoin/bips · GitHub

and in SLIP-39 (for Shamir backup): slips/slip-0039.md at master · satoshilabs/slips · GitHub

1 Like