bch

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bch provides utilities for BCH - Bitcoin Cash.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToBitpayAddr

func ConvertToBitpayAddr(buf []byte, net *chaincfg.Params) (addr string, err error)

ConvertToBitpayAddr converts legacy public key to bitpay-style address

func ConvertToCashAddr

func ConvertToCashAddr(buf []byte, net *chaincfg.Params) (addr string, err error)

ConvertToCashAddr converts legacy public key to cash address

func ConvertToSlpCashAddr

func ConvertToSlpCashAddr(buf []byte, net *chaincfg.Params) (addr string, err error)

ConvertToSlpCashAddr converts legacy public key to slp cash address

Types

type AddrStyle

type AddrStyle int
const (
	ADDR_STYLE_LEGACY AddrStyle = iota
	ADDR_STYLE_CASH
	ADDR_STYLE_BITPAY
)

Jump to

Keyboard shortcuts

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