Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDepositAddress ¶
DecodeDepositAddress decodes a deposit address string into its components. The deposit address format is: slot_address_checksum It returns the slot number, the Bitcoin address, the checksum, and any error encountered. The function validates the format, parses the slot, decodes the Bitcoin address, and verifies the checksum to ensure the integrity of the deposit address.
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.