drivechain

package
v0.0.0-...-c523018 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeDepositAddress

func DecodeDepositAddress(depositAddress string) (*int64, string, *string, error)

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

func ScriptDepositAddress(depositAddress string) ([]byte, error)

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

func ScriptSidechainDeposit(slot uint8) ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL