Files
warp/verifier.go
zeekay e780233ce1 feat: add Verifier interface and signature handling types
Move warp-specific types from lp118 to the warp package:
- Add Verifier interface for warp message verification
- Add SignatureRequest/SignatureResponse with binary marshaling
- Add SignatureHandler, CachedSignatureHandler, SignatureHandlerAdapter
- Add SignatureAggregator for validator signature aggregation

This consolidates warp functionality and maintains clear separation
between p2p networking (github.com/luxfi/p2p) and warp-specific
types (github.com/luxfi/warp).
2025-12-23 10:28:57 -08:00

16 lines
450 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package warp
import (
"context"
)
// Verifier verifies warp messages before signing
type Verifier interface {
// Verify verifies an unsigned warp message with justification.
// Returns nil on success, or an error if verification fails.
Verify(ctx context.Context, unsignedMessage *UnsignedMessage, justification []byte) error
}