add beefy compact signed commitment definition (#5781)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
github-actions[bot]
parent
5374f8448f
commit
a64228c9b2
@@ -28,6 +28,12 @@ export default {
|
||||
first: 'BeefyVoteMessage',
|
||||
second: 'BeefyVoteMessage'
|
||||
},
|
||||
BeefyCompactSignedCommitment: {
|
||||
commitment: 'BeefyCommitment',
|
||||
signaturesFrom: 'Vec<u8>',
|
||||
validatorSetLen: 'u32',
|
||||
signaturesCompact: 'Vec<EcdsaSignature>'
|
||||
},
|
||||
BeefySignedCommitment: {
|
||||
commitment: 'BeefyCommitment',
|
||||
signatures: 'Vec<Option<EcdsaSignature>>'
|
||||
@@ -35,7 +41,7 @@ export default {
|
||||
BeefyVersionedFinalityProof: {
|
||||
_enum: {
|
||||
V0: 'Null',
|
||||
V1: 'BeefySignedCommitment'
|
||||
V1: 'BeefyCompactSignedCommitment'
|
||||
}
|
||||
},
|
||||
BeefyNextAuthoritySet: {
|
||||
|
||||
@@ -21,6 +21,14 @@ export interface BeefyCommitment extends Struct {
|
||||
readonly validatorSetId: ValidatorSetId;
|
||||
}
|
||||
|
||||
/** @name BeefyCompactSignedCommitment */
|
||||
export interface BeefyCompactSignedCommitment extends Struct {
|
||||
readonly commitment: BeefyCommitment;
|
||||
readonly signaturesFrom: Bytes;
|
||||
readonly validatorSetLen: u32;
|
||||
readonly signaturesCompact: Vec<EcdsaSignature>;
|
||||
}
|
||||
|
||||
/** @name BeefyEquivocationProof */
|
||||
export interface BeefyEquivocationProof extends Struct {
|
||||
readonly first: BeefyVoteMessage;
|
||||
@@ -53,7 +61,7 @@ export interface BeefySignedCommitment extends Struct {
|
||||
export interface BeefyVersionedFinalityProof extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly isV1: boolean;
|
||||
readonly asV1: BeefySignedCommitment;
|
||||
readonly asV1: BeefyCompactSignedCommitment;
|
||||
readonly type: 'V0' | 'V1';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user