mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 03:22:20 +00:00
26 lines
644 B
Rust
26 lines
644 B
Rust
use super::utils::types::{ Hash256, Bitfield };
|
|
use super::utils::bls::{ AggregateSignature };
|
|
|
|
|
|
pub struct AttestationRecord {
|
|
pub slot: u64,
|
|
pub shard_id: u16,
|
|
pub oblique_parent_hashes: Vec<Hash256>,
|
|
pub shard_block_hash: Hash256,
|
|
pub attester_bitfield: Bitfield,
|
|
pub aggregate_sig: Option<AggregateSignature>,
|
|
}
|
|
|
|
impl AttestationRecord {
|
|
pub fn zero() -> Self {
|
|
Self {
|
|
slot: 0,
|
|
shard_id: 0,
|
|
oblique_parent_hashes: vec![],
|
|
shard_block_hash: Hash256::zero(),
|
|
attester_bitfield: Bitfield::new(),
|
|
aggregate_sig: None,
|
|
}
|
|
}
|
|
}
|