Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public IndexedAttestation(
     IEnumerable <ValidatorIndex> custodyBit0Indices,
     IEnumerable <ValidatorIndex> custodyBit1Indices,
     AttestationData data,
     BlsSignature signature)
 {
     _custodyBit0Indices = new List <ValidatorIndex>(custodyBit0Indices);
     _custodyBit1Indices = new List <ValidatorIndex>(custodyBit1Indices);
     Data      = data;
     Signature = signature;
 }
Ejemplo n.º 3
0
 public PendingAttestation(
     BitArray aggregationBits,
     AttestationData data,
     Slot inclusionDelay,
     ValidatorIndex proposerIndex)
 {
     AggregationBits = aggregationBits;
     Data            = data;
     InclusionDelay  = inclusionDelay;
     ProposerIndex   = proposerIndex;
 }