taproot

package
v0.0.0-...-93c27fc Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: CC0-1.0, MIT, ISC Imports: 8 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() string

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 []byte,
	net *chaincfg.Params) (*AddressTaproot, error)

NewAddressTaproot returns a new AddressTaproot.

type B

type B = []byte

type S

type S = string

Jump to

Keyboard shortcuts

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