mirror of
https://github.com/luxfi/warp.git
synced 2026-10-30 15:13:04 +00:00
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).
16 lines
450 B
Go
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
|
|
}
|