taproot

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Unlicense, ISC Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package taproot provides a collection of tools for encoding bitcoin taproot addresses.

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() []byte

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.

Jump to

Keyboard shortcuts

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