mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
14 lines
395 B
Go
14 lines
395 B
Go
|
package slashingprotection
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
eth "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
||
|
)
|
||
|
|
||
|
// Protector interface defines the methods of the service that provides slashing protection.
|
||
|
type Protector interface {
|
||
|
VerifyAttestation(ctx context.Context, attestation *eth.IndexedAttestation) bool
|
||
|
VerifyBlock(ctx context.Context, blockHeader *eth.SignedBeaconBlockHeader) bool
|
||
|
}
|