Documentation
¶
Overview ¶
Runnable version of every multi-sig code block from docs/examples.md. Each function is a 1:1 copy of the doc example, with only two changes:
- Placeholder addresses replaced with real Nile testnet addresses
- keys.GetPrivateKeyFromHex() replaced with keys.GenerateKey() (unless a real private key is provided via env or flag)
If this file fails to run, the documentation is wrong.
Usage:
go run ./examples/multisig # dry-run (no broadcast) MULTISIG_KEY=<hex> go run ./examples/multisig # live mode (key from env) go run ./examples/multisig -key <private-key-hex> # live mode (key from flag, unsafe: visible in shell history)
Click to show internal directories.
Click to hide internal directories.