mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
29 lines
796 B
Go
29 lines
796 B
Go
|
package common
|
||
|
|
||
|
import (
|
||
|
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
||
|
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
||
|
)
|
||
|
|
||
|
const FailedBlockSignLocalErr = "block rejected by local protection"
|
||
|
|
||
|
// Proposal representation for a validator public key.
|
||
|
type Proposal struct {
|
||
|
Slot primitives.Slot `json:"slot"`
|
||
|
SigningRoot []byte `json:"signing_root"`
|
||
|
}
|
||
|
|
||
|
// ProposalHistoryForPubkey for a validator public key.
|
||
|
type ProposalHistoryForPubkey struct {
|
||
|
Proposals []Proposal
|
||
|
}
|
||
|
|
||
|
// AttestationRecord which can be represented by these simple values
|
||
|
// for manipulation by database methods.
|
||
|
type AttestationRecord struct {
|
||
|
PubKey [fieldparams.BLSPubkeyLength]byte
|
||
|
Source primitives.Epoch
|
||
|
Target primitives.Epoch
|
||
|
SigningRoot []byte
|
||
|
}
|