utils

package
v0.0.0-...-f73c8e4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfFileExists

func CheckIfFileExists(path string) bool

func ConvertPubKeyToScriptHash

func ConvertPubKeyToScriptHash(pubKey [32]byte) string

ConvertPubKeyToScriptHash Converts the given taproot pubKey to a scriptHash which can be checked with electrumX

func ConvertToFixedLength34

func ConvertToFixedLength34(input []byte) [34]byte

func CopyBytes

func CopyBytes(bytes []byte) []byte

func IsSilentPaymentAddress

func IsSilentPaymentAddress(address string) bool

IsSilentPaymentAddress determines whether an address is a silent payment address. Works only for silent payment v0

func ResolvePath

func ResolvePath(path string) string

func SerialiseVinToOutpoint

func SerialiseVinToOutpoint(vin bip352.Vin) ([36]byte, error)

SerialiseVinToOutpoint serialises a vin to an outpoint in LE encoding

func TryCreateDirectory

func TryCreateDirectory(path string) error

func TryCreateDirectoryPanic

func TryCreateDirectoryPanic(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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