Keys
A seed phrase becomes an account key
Twelve words make a seed, and the seed makes a tree of keys. Strip the private half from an account key and you have an xpub: it can find every address in the account, and spend none of them.
- Mnemonic
- hidden on mainnet — these demo keys come from a public test vector
- Account path
- m/44'/236'/0'
- Receive path
- m/44'/236'/0'/0/2
- Account xprv · private
- hidden on mainnet — these demo keys come from a public test vector
- Account xpub · shareable
- xpub6CdMDgU2hzWyeZ852LWqp5AfDz3ty2cRfi4jEw9BT8aNYugMQvVykQsKLARZdbqKKp7yTviJdL1N9s…
Elixir
mnemonic = "hidden on mainnet — these demo keys come from a public test vector"
seed = BSV.Mnemonic.to_seed(mnemonic)
master = BSV.ExtKey.from_seed!(seed)
account = BSV.ExtKey.derive(master, "m/44'/236'/0'")
xpub = account |> BSV.ExtKey.to_public() |> BSV.ExtKey.to_string()
Seed
hidden on mainnet — these demo keys come from a public test vector
The seed is long, but the step that matters is mnemonic to seed to account xpub.