Sample

Eth Keys

Eth public addresses are 20 bytes.

<aside> 🎒

Backpack does it like this:

https://github.com/coral-xyz/backpack/blob/master/packages/secure-background/src/services/evm/util.ts#L3

</aside>

When generating the public key for an ETH address

Solana Keys

Solana public keys are 32 bytes.

No Complex process like Eth, just use @solana/web3.js

Mnemonics

To understand it better, create a wallet using an extension in the Backpack (No tutorial, just go with it)

This is the 12 word set, that determines the seed, which allows us to deterministically generate Wallets(any net)

Proposed in BIP 39

Generating Wallets

Solana