Documentation ¶
Index ¶
- type ActiveCheckpoint
- func (a *ActiveCheckpoint) AddBtcSig(pubKey types.SignatoryPubkey, sig [64]byte, set *types.SignatorySet) bool
- func (a *ActiveCheckpoint) AddMntSig(pubKey types.SignatoryPubkey, sig []byte, set *types.SignatorySet) bool
- func (a *ActiveCheckpoint) BtcSignatures() map[types.SignatoryPubkey][][64]byte
- func (a *ActiveCheckpoint) BtcWithdrawals() []types.Withdrawal
- func (a *ActiveCheckpoint) BtcWithdrawalsAmount() int64
- func (a *ActiveCheckpoint) CalcBtcHashToSign(set *types.SignatorySet, utxoInd int) ([]byte, error)
- func (a *ActiveCheckpoint) CheckBtcSig(pubKey types.SignatoryPubkey, sig [64]byte, set *types.SignatorySet) error
- func (a *ActiveCheckpoint) CheckMntSig(pubKey types.SignatoryPubkey, sig []byte, sigHash []byte) error
- func (a *ActiveCheckpoint) ClearBtc(set *types.SignatorySet)
- func (a *ActiveCheckpoint) ClearMnt(set *types.SignatorySet)
- func (a *ActiveCheckpoint) Commit() error
- func (a *ActiveCheckpoint) Export(state *types.AppState)
- func (a *ActiveCheckpoint) IsBtcEmpty() bool
- func (a *ActiveCheckpoint) IsMntEmpty() bool
- func (a *ActiveCheckpoint) LoadActiveCheckpoint()
- func (a *ActiveCheckpoint) MntSignatures() map[types.SignatoryPubkey][]byte
- func (a *ActiveCheckpoint) MntWithdrawals() []types.Withdrawal
- func (a *ActiveCheckpoint) SetBtcActiveCheckpoint(withdrawals []types.Withdrawal, utxos []types.Utxo, sigs []types.BtcSignature, ...)
- func (a *ActiveCheckpoint) SetMntActiveCheckpoint(withdrawals []types.Withdrawal, sigs []types.MntSignature, power uint64)
- func (a *ActiveCheckpoint) Utxos() []types.Utxo
- func (a *ActiveCheckpoint) UtxosAmount() int64
- type Btc
- type Bus
- type Mnt
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 (*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
Click to show internal directories.
Click to hide internal directories.