Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDepositAddress ¶
DecodeDepositAddress decodes a deposit address string into its components. It can handle three formats: 1. Just a address (e.g. "13tqn1jxdcrbDycej4bp5S5PcffYtdGNPy") 2. Slot and address (e.g. "s9_13tqn1jxdcrbDycej4bp5S5PcffYtdGNPy") 3. Full format with checksum (e.g. "s9_13tqn1jxdcrbDycej4bp5S5PcffYtdGNPy_checksum") Returns slot number (or 0), address, checksum (or empty), and any error.
func ScriptDepositAddress ¶
DrivechainDepositAddress creates a new script to deposit funds to a specific address on a sidechain. It's used in the same transaction as ScriptSidechainDeposit. This script tags along with BIP300-M5: https://en.bitcoin.it/wiki/BIP_0300
func ScriptSidechainDeposit ¶
DrivechainSidechainDeposit creates a new script used to deposit funds to a sidechain, using OP_NOP5 (OP_DRIVECHAIN) to specify which sidechain the UTXO is for. This implements BIP300-M5: https://en.bitcoin.it/wiki/BIP_0300
Types ¶
This section is empty.