activecheckpoint

package
v0.0.0-...-c04c664 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveCheckpoint

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

func NewActiveCheckpoint

func NewActiveCheckpoint(stateBus *bus.Bus, iavl tree.Tree) (*ActiveCheckpoint, error)

func (*ActiveCheckpoint) AddBtcSig

func (a *ActiveCheckpoint) AddBtcSig(pubKey types.SignatoryPubkey, sig [64]byte, set *types.SignatorySet) bool

func (*ActiveCheckpoint) AddMntSig

func (a *ActiveCheckpoint) AddMntSig(pubKey types.SignatoryPubkey, sig []byte, set *types.SignatorySet) bool

func (*ActiveCheckpoint) BtcSignatures

func (a *ActiveCheckpoint) BtcSignatures() map[types.SignatoryPubkey][][64]byte

func (*ActiveCheckpoint) BtcWithdrawals

func (a *ActiveCheckpoint) BtcWithdrawals() []types.Withdrawal

func (*ActiveCheckpoint) BtcWithdrawalsAmount

func (a *ActiveCheckpoint) BtcWithdrawalsAmount() int64

func (*ActiveCheckpoint) CalcBtcHashToSign

func (a *ActiveCheckpoint) CalcBtcHashToSign(set *types.SignatorySet, utxoInd int) ([]byte, error)

func (*ActiveCheckpoint) CheckBtcSig

func (a *ActiveCheckpoint) CheckBtcSig(pubKey types.SignatoryPubkey, sig [64]byte, set *types.SignatorySet) error

func (*ActiveCheckpoint) CheckMntSig

func (a *ActiveCheckpoint) CheckMntSig(pubKey types.SignatoryPubkey, sig []byte, sigHash []byte) error

func (*ActiveCheckpoint) ClearBtc

func (a *ActiveCheckpoint) ClearBtc(set *types.SignatorySet)

func (*ActiveCheckpoint) ClearMnt

func (a *ActiveCheckpoint) ClearMnt(set *types.SignatorySet)

func (*ActiveCheckpoint) Commit

func (a *ActiveCheckpoint) Commit() error

func (*ActiveCheckpoint) Export

func (a *ActiveCheckpoint) Export(state *types.AppState)

func (*ActiveCheckpoint) IsBtcEmpty

func (a *ActiveCheckpoint) IsBtcEmpty() bool

func (*ActiveCheckpoint) IsMntEmpty

func (a *ActiveCheckpoint) IsMntEmpty() bool

func (*ActiveCheckpoint) LoadActiveCheckpoint

func (a *ActiveCheckpoint) LoadActiveCheckpoint()

func (*ActiveCheckpoint) MntSignatures

func (a *ActiveCheckpoint) MntSignatures() map[types.SignatoryPubkey][]byte

func (*ActiveCheckpoint) MntWithdrawals

func (a *ActiveCheckpoint) MntWithdrawals() []types.Withdrawal

func (*ActiveCheckpoint) SetBtcActiveCheckpoint

func (a *ActiveCheckpoint) SetBtcActiveCheckpoint(withdrawals []types.Withdrawal, utxos []types.Utxo, sigs []types.BtcSignature, power uint64)

func (*ActiveCheckpoint) SetMntActiveCheckpoint

func (a *ActiveCheckpoint) SetMntActiveCheckpoint(withdrawals []types.Withdrawal, sigs []types.MntSignature, power uint64)

func (*ActiveCheckpoint) Utxos

func (a *ActiveCheckpoint) Utxos() []types.Utxo

func (*ActiveCheckpoint) UtxosAmount

func (a *ActiveCheckpoint) UtxosAmount() int64

type Btc

type Btc struct {
	Withdrawals []types.Withdrawal
	Utxos       []types.Utxo
	Signatures  map[types.SignatoryPubkey][][64]byte
	VotingPower uint64
	// contains filtered or unexported fields
}

func (*Btc) SignaturesSet

func (m *Btc) SignaturesSet() []types.BtcSignature

type Bus

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

func NewBus

func NewBus(activeCheckpoint *ActiveCheckpoint) *Bus

func (*Bus) GetActiveCheckpoint

func (b *Bus) GetActiveCheckpoint() *types.ActiveCheckpoint

type Mnt

type Mnt struct {
	Withdrawals []types.Withdrawal
	Signatures  map[types.SignatoryPubkey][]byte
	VotingPower uint64
	// contains filtered or unexported fields
}

func (*Mnt) SignaturesSet

func (m *Mnt) SignaturesSet() []types.MntSignature

Jump to

Keyboard shortcuts

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