HD wallet derivation scheme in Cardano


I’m not sure if this is a Cardano question or rather a Daedalus question but still, I hope I can get it answered here :wink:

I would like to get specific information on how HD derivation scheme works in Cardano HD wallets. There is some information here: https://cardanodocs.com/technical/hd-wallets/ but it’s not complete enough - for example I am interested in specific algorithms used.

A low-level explanation would be nice, but linking a relevant piece of code will do as well.