public IndexedAttestation( IEnumerable <ValidatorIndex> attestingIndices, AttestationData data, BlsSignature signature) { _attestingIndices = new List <ValidatorIndex>(attestingIndices); Data = data; Signature = signature; }
public static PendingAttestation Clone(PendingAttestation other) { var clone = new PendingAttestation( new BitArray(other.AggregationBits), AttestationData.Clone(other.Data), other.InclusionDelay, other.ProposerIndex); return(clone); }
public PendingAttestation( BitArray aggregationBits, AttestationData data, Slot inclusionDelay, ValidatorIndex proposerIndex) { AggregationBits = aggregationBits; Data = data; InclusionDelay = inclusionDelay; ProposerIndex = proposerIndex; }
public Attestation(BitArray aggregationBits, AttestationData data, BlsSignature signature) { AggregationBits = aggregationBits; Data = data; Signature = signature; }
public bool IsSlashable(AttestationData data2) { return((!ReferenceEquals(this, data2) && Target.Epoch == data2.Target.Epoch) || (Source.Epoch < data2.Source.Epoch && Target.Epoch > data2.Target.Epoch)); }