taproot

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Unlicense, ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressSegWit

type AddressSegWit struct {
	// contains filtered or unexported fields
}

AddressSegWit is the base address type for all SegWit addresses.

func (*AddressSegWit) EncodeAddress

func (a *AddressSegWit) EncodeAddress() B

EncodeAddress returns the bech32 (or bech32m for SegWit v1) string encoding of an AddressSegWit.

NOTE: This method is part of the Address interface.

type AddressTaproot

type AddressTaproot struct {
	AddressSegWit
}

AddressTaproot is an Address for a pay-to-taproot (P2TR) output. See BIP 341 for further details.

func NewAddressTaproot

func NewAddressTaproot(witnessProg B,
	net *chaincfg.Params) (*AddressTaproot, error)

NewAddressTaproot returns a new AddressTaproot.

type B

type B = []byte

type Ctx

type Ctx = context.T

type E

type E = error

type N

type N = int

type S

type S = string

Jump to

Keyboard shortcuts

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