You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a suggestion of the primitives we could need (but could be more)
typeBeefyPayloadId [2]bytetypePayloadElementstruct {
payloadIdBeefyPayloadIddata []byte
}
typeValidatorSetIduint64// AuthorityId is the ECDSA public key (or any other crypto scheme we want to use)typeValidatorSet[AuthorityIdany] struct {
/// Public keys of the validator set elementsvalidators []AuthorityId/// Identifier of the validator setidValidatorSetId
}
typeCommitment[Number runtime.Number] struct{
/// A collection of payloads to be signedpayload []PayloadElement/// Finalized block number this commitment is for.block_numberNumber/// BEEFY validator set supposed to sign this commitment.validator_set_idValidatorSetId
}
typeSignedCommitment[Number runtime.Number, Signature] struct {
/// The commitment signatures are collected for.CommitmentCommitment[Number]
/// GRANDPA validators' signatures for the commitment.Signatures []*Signature
}
typeCompactSignedCommitment[Number runtime.Number, Signature] struct {
/// The commitment, unchanged compared to regular [`SignedCommitment`].commitmentCommitment[Number]
/// A bitfield representing presence of a signature coming from a validator at some index.////// The bit at index `0` is set to `1` in case we have a signature coming from a validator at/// index `0`signaturesFrom []bool// Number of validators in the Validator SetValidatorSetLenuint32/// A `Vec` containing all `Signature`s present in the original [`SignedCommitment`].signaturesCompact []Signature
}
// SignatureAccumulator could be a merkle root or a single aggregated BLS signaturetypeSignedCommitmentWitness[BNumber runtime.Number, SAccumulator] struct {
/// The full content of the commitment.CommitmentCommitment[BNumber]
/// The bit vector of validators who signed the commitment.SignedBy []bool/// Either a merkle root of signatures in the original signed commitment or a single aggregated/// BLS signature aggregating all original signatures.SignatureAccumulatorSAccumulator
}
// Signature is a ECDSA signature (or any other crypto scheme)typeVoteMessage[Number runtime.Number, Id, Signature] struct {
/// Commit to information extracted from a finalized blockCommitmentCommitment[Number]
/// Node authority idIdId/// Node signatureSignatureSignature
}typeBeefyPayloadId [2]bytetypePayloadElementstruct {
payloadIdBeefyPayloadIddata []byte
}
typeValidatorSetIduint64// AuthorityId is the ECDSA public key (or any other crypto scheme we want to use)typeValidatorSet[AuthorityIdany] struct {
/// Public keys of the validator set elementsvalidators []AuthorityId/// Identifier of the validator setidValidatorSetId
}
typeCommitment[Number runtime.Number] struct{
/// A collection of payloads to be signedpayload []PayloadElement/// Finalized block number this commitment is for.block_numberNumber/// BEEFY validator set supposed to sign this commitment.validator_set_idValidatorSetId
}
typeSignedCommitment[Number runtime.Number, Signature] struct {
/// The commitment signatures are collected for.CommitmentCommitment[Number]
/// GRANDPA validators' signatures for the commitment.Signatures []*Signature
}
typeCompactSignedCommitment[Number runtime.Number, Signature] struct {
/// The commitment, unchanged compared to regular [`SignedCommitment`].commitmentCommitment[Number]
/// A bitfield representing presence of a signature coming from a validator at some index.////// The bit at index `0` is set to `1` in case we have a signature coming from a validator at/// index `0`signaturesFrom []bool// Number of validators in the Validator SetValidatorSetLenuint32/// A `Vec` containing all `Signature`s present in the original [`SignedCommitment`].signaturesCompact []Signature
}
// SignatureAccumulator could be a merkle root or a single aggregated BLS signaturetypeSignedCommitmentWitness[BNumber runtime.Number, SAccumulator] struct {
/// The full content of the commitment.CommitmentCommitment[BNumber]
/// The bit vector of validators who signed the commitment.SignedBy []bool/// Either a merkle root of signatures in the original signed commitment or a single aggregated/// BLS signature aggregating all original signatures.SignatureAccumulatorSAccumulator
}
// Signature is a ECDSA signature (or any other crypto scheme)typeVoteMessage[Number runtime.Number, Id, Signature] struct {
/// Commit to information extracted from a finalized blockCommitmentCommitment[Number]
/// Node authority idIdId/// Node signatureSignatureSignature
}
The text was updated successfully, but these errors were encountered:
Description
Add all primitives required by BEEFY
This is a suggestion of the primitives we could need (but could be more)
The text was updated successfully, but these errors were encountered: