Skip to main content

ValidatorAggregatedSignature

type ValidatorAggregatedSignature

An aggregated signature from multiple Validators.

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text validator-aggregated-signature = u64 ; epoch bls12381-signature ; signature bytes ; bitmap — contents of the bytes are ; valid according to the serialized ; spec for roaring bitmaps ```

See <https://github.com/RoaringBitmap/RoaringFormatSpec\> for the specification for the serialized format of RoaringBitmaps.

type ValidatorAggregatedSignature struct {
// contains filtered or unexported fields
}

func LiftFromExternalValidatorAggregatedSignature

func LiftFromExternalValidatorAggregatedSignature(handle uint64) *ValidatorAggregatedSignature

func NewValidatorAggregatedSignature

func NewValidatorAggregatedSignature(epoch uint64, signature *Bls12381Signature, bitmapBytes []byte) (*ValidatorAggregatedSignature, error)

func ValidatorAggregatedSignatureFromBcs

func ValidatorAggregatedSignatureFromBcs(bcs []byte) (*ValidatorAggregatedSignature, error)

Create this type from BCS encoded bytes.

func ValidatorAggregatedSignatureFromJson

func ValidatorAggregatedSignatureFromJson(json string) (*ValidatorAggregatedSignature, error)

Create this type from JSON encoded string.

func (*ValidatorAggregatedSignature) BitmapBytes

func (_self *ValidatorAggregatedSignature) BitmapBytes() ([]byte, error)

func (*ValidatorAggregatedSignature) DebugString

func (_self *ValidatorAggregatedSignature) DebugString() string

func (*ValidatorAggregatedSignature) Destroy

func (object *ValidatorAggregatedSignature) Destroy()

func (*ValidatorAggregatedSignature) Epoch

func (_self *ValidatorAggregatedSignature) Epoch() uint64

func (*ValidatorAggregatedSignature) Signature

func (_self *ValidatorAggregatedSignature) Signature() *Bls12381Signature