コード例 #1
0
 public IndexedAttestation(
     IEnumerable <ValidatorIndex> attestingIndices,
     AttestationData data,
     BlsSignature signature)
 {
     _attestingIndices = new List <ValidatorIndex>(attestingIndices);
     Data      = data;
     Signature = signature;
 }
コード例 #2
0
        public static PendingAttestation Clone(PendingAttestation other)
        {
            var clone = new PendingAttestation(
                new BitArray(other.AggregationBits),
                AttestationData.Clone(other.Data),
                other.InclusionDelay,
                other.ProposerIndex);

            return(clone);
        }
コード例 #3
0
 public PendingAttestation(
     BitArray aggregationBits,
     AttestationData data,
     Slot inclusionDelay,
     ValidatorIndex proposerIndex)
 {
     AggregationBits = aggregationBits;
     Data            = data;
     InclusionDelay  = inclusionDelay;
     ProposerIndex   = proposerIndex;
 }
コード例 #4
0
 public Attestation(BitArray aggregationBits, AttestationData data, BlsSignature signature)
 {
     AggregationBits = aggregationBits;
     Data            = data;
     Signature       = signature;
 }
コード例 #5
0
 public bool IsSlashable(AttestationData data2)
 {
     return((!ReferenceEquals(this, data2) && Target.Epoch == data2.Target.Epoch) ||
            (Source.Epoch < data2.Source.Epoch && Target.Epoch > data2.Target.Epoch));
 }