mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
29 lines
794 B
Go
29 lines
794 B
Go
package common
|
|
|
|
import (
|
|
fieldparams "github.com/OffchainLabs/prysm/v7/config/fieldparams"
|
|
"github.com/OffchainLabs/prysm/v7/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
|
|
}
|