blockydevs / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
0 stars 0 forks source link

Hierarchical Derivation Keys for Solana #1

Open matevszm opened 2 months ago

matevszm commented 2 months ago

Hierarchical Derivation Keys for Solana

Generating HD keys for Solana is different from Ethereum for one reason: these chains use different algorithms for keys. For the first, we don't have an extended public key for ED25519 like we do for secp256k1, so we can't derive indexed addresses in the same way. With ED25519, generating these keys is only possible using the seed phrase and later the private keys. https://xrpl.org/docs/concepts/accounts/cryptographic-keys#ed25519-key-derivation

Implementation that could be used: https://github.com/jpopesculian/ed25519-dalek-bip32

Generate next keys base on seed using Solana CLI: https://docs.solanalabs.com/cli/wallets/paper#hierarchical-derivation

Hierarchical Derivation keys for ED25519 in depth: https://input-output-hk.github.io/adrestia/static/Ed25519_BIP.pdf

0xMMBD commented 2 months ago

Currently implementation will be attempted with the use of https://github.com/jpopesculian/ed25519-dalek-bip32 library