txbroadcaster

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

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

Broadcaster polls SIGNED events and broadcasts them to external chains.

func NewBroadcaster

func NewBroadcaster(cfg Config) *Broadcaster

NewBroadcaster creates a new tx broadcaster.

func (*Broadcaster) Start

func (b *Broadcaster) Start(ctx context.Context)

Start begins the background broadcast loop.

type Config

type Config struct {
	EventStore    *eventstore.Store
	Chains        *chains.Chains
	CheckInterval time.Duration
	Logger        zerolog.Logger
	GetTSSAddress func(ctx context.Context) (string, error)
}

Config holds configuration for the broadcaster.

type SignedEventData

type SignedEventData struct {
	uexecutortypes.OutboundCreatedEvent
	SigningData *SigningData `json:"signing_data,omitempty"`
}

SignedEventData wraps OutboundCreatedEvent with signing data appended by sessionManager.

type SigningData

type SigningData struct {
	Signature   string `json:"signature"`    // hex-encoded 64/65 byte signature
	SigningHash string `json:"signing_hash"` // hex-encoded signing hash
	Nonce       uint64 `json:"nonce"`
}

SigningData holds the signing parameters persisted by sessionManager when marking SIGNED.

Jump to

Keyboard shortcuts

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