flags

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []int

Returns every possible recovery flag, taken from https://github.com/btclib-org/btclib/blob/v2022.7.20/btclib/ecc/bms.py#L82

func Compressed

func Compressed() []int

Returns all compressed recovery flags.

func ElectrumP2WPKH

func ElectrumP2WPKH() []int

Returns all P2WPKH recovery flags related to Electrum.

func ElectrumP2WPKHAndP2SH

func ElectrumP2WPKHAndP2SH() []int

Returns all P2WPKH-P2SH recovery flags related to Electrum.

func GetKeyID

func GetKeyID(recoveryFlag int) int

Returns the Key ID for a specified recovery flag Taken from https://github.com/btclib-org/btclib/blob/v2022.7.20/btclib/ecc/bms.py#L311

func ShouldBeCompressed

func ShouldBeCompressed(recoveryFlag int) bool

Returns if a recovery flag signals a compressed key Taken from https://github.com/btclib-org/btclib/blob/v2022.7.20/btclib/ecc/bms.py#L314

func Trezor

func Trezor() []int

Returns all recovery flags related to Trezor.

func TrezorP2WPKH

func TrezorP2WPKH() []int

Returns all P2WPKH recovery flags related to Trezor.

func TrezorP2WPKHAndP2SH

func TrezorP2WPKHAndP2SH() []int

Returns all P2WPKH-P2SH recovery flags related to Trezor.

func Uncompressed

func Uncompressed() []int

Returns all uncompressed recovery flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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