Skip to main content

Early development · Feedback welcome

Design · lab

From a seed phrase to a signed output

One demo wallet, five steps: keys, an xpub a shop can hold, a custom script, a 1Sat object, and metadata signed by its author. Every value is computed live by bsv-ex; change the fields and the steps follow.

Account xpub
xpub6CdMDgU2hzWyeZ852LWqp5AfDz3ty2cRfi4jEw9BT8aNYugMQvVykQsKLARZ…
Focus address
155Vurs4bMMu5BemtZ6cVPhryGWef4VxZu

This node is on mainnet, so the demo's private keys (mnemonic, seed, xprv, WIF) are hidden. They come from a public test vector, and any mainnet address derived from them is swept at once.

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.