Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + var ErrOutputNotFound = errors.New("unable to find output on commit tx") + var ErrUnknownSweepAddrType = errors.New("sweep addr is not p2wkh or p2wsh") + func DisableLog() + func UseLogger(logger btclog.Logger) + type BlockFetcher interface + GetBlock func(*chainhash.Hash) (*wire.MsgBlock, error) + type BreachPunisher struct + func NewBreachPunisher(cfg *PunisherConfig) *BreachPunisher + func (p *BreachPunisher) Punish(desc *JusticeDescriptor, quit <-chan struct{}) error + type Config struct + BlockFetcher BlockFetcher + DB DB + EpochRegistrar EpochRegistrar + Punisher Punisher + type DB interface + GetLookoutTip func() (*chainntnfs.BlockEpoch, error) + QueryMatches func([]wtdb.BreachHint) ([]wtdb.Match, error) + SetLookoutTip func(*chainntnfs.BlockEpoch) error + type EpochRegistrar interface + RegisterBlockEpochNtfn func(*chainntnfs.BlockEpoch) (*chainntnfs.BlockEpochEvent, error) + type JusticeDescriptor struct + BreachedCommitTx *wire.MsgTx + JusticeKit *blob.JusticeKit + SessionInfo *wtdb.SessionInfo + func (p *JusticeDescriptor) CreateJusticeTxn() (*wire.MsgTx, error) + type Lookout struct + func New(cfg *Config) *Lookout + func (l *Lookout) Start() error + func (l *Lookout) Stop() error + type Punisher interface + Punish func(*JusticeDescriptor, <-chan struct{}) error + type PunisherConfig struct + PublishTx func(*wire.MsgTx) error + type Service interface + Start func() error + Stop func() error