utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArkAddress

func GetArkAddress(invoice string) string

func GetBtcAddress

func GetBtcAddress(invoice string) string

func GetNewPrivateKey

func GetNewPrivateKey() string

func IsBip21

func IsBip21(invoice string) bool

func IsValidArkAddress

func IsValidArkAddress(address string) bool

func IsValidArkNote

func IsValidArkNote(text string) bool

func IsValidBtcAddress

func IsValidBtcAddress(address string) bool

func IsValidMnemonic

func IsValidMnemonic(mnemonic string) error

func IsValidPassword

func IsValidPassword(password string) error

func IsValidPrivateKey

func IsValidPrivateKey(privateKey string) error

func IsValidURL

func IsValidURL(str string) bool

func NsecToSeed

func NsecToSeed(nsec string) (string, error)

func PrivateKeyFromMnemonic

func PrivateKeyFromMnemonic(mnemonic string) (string, error)

func SatsFromNote

func SatsFromNote(text string) int

func SeedToNsec

func SeedToNsec(seed string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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