types

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	// contains filtered or unexported fields
}

func NewAmountSats

func NewAmountSats(sats uint64) Amount

func NewBAmountMSats

func NewBAmountMSats(msats uint64) Amount

func (Amount) AsMSats

func (a Amount) AsMSats() uint64

func (Amount) AsSats

func (a Amount) AsSats() uint64

type ChannelPoint

type ChannelPoint struct {
	FundingTx   Transaction
	OutputIndex uint
}

type PubKey

type PubKey struct {
	// contains filtered or unexported fields
}

func NewPubKeyFromByte

func NewPubKeyFromByte(value []byte) PubKey

func NewPubKeyFromHexString

func NewPubKeyFromHexString(value string) (PubKey, error)

func (PubKey) AsBytes

func (p PubKey) AsBytes() []byte

func (PubKey) AsHexString

func (p PubKey) AsHexString() string

type Transaction

type Transaction struct {
	Id []byte
}

func NewTransactionFromByte

func NewTransactionFromByte(id []byte) Transaction

func NewTransactionFromHexString

func NewTransactionFromHexString(id string) (Transaction, error)

func (Transaction) IdAsBytes

func (t Transaction) IdAsBytes() []byte

func (Transaction) IdAsHexString

func (t Transaction) IdAsHexString() string

Jump to

Keyboard shortcuts

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