-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dan_layer)!: generate and add checkpoint signatures (#4261)
Description --- - feat(dan_layer): generate and add checkpoint signatures - feat(explorer): update text explorer to include signatures - feat(base_layer/wallet): update wallet command file formats - feat(base_layer/core): wires up committee signatures to grpc with conversions - feat(base_layer/core): adds SignerSignature struct for CommitteeSignatures - feat(base_layer/wallet): include committee signatures for checkpoint GRPC requests Motivation and Context --- DAN committees need to collect signatures to include in checkpoints. This PR adds the initial implementation of that. The signature challenge is: `e = H_1(signer_public_key || public_nonce || H_2(contract_id||commitment||merkle_root||checkpoint_number))` Although constructing a challenge with actual data is a TODO as that involves a bit of a refactor. This PR also adds the `SignerSignature` struct that includes the signing public key along with the Schnorr signature tuple `<R, s>`. This is so that we know which if the validators signed. There may be an aggregate signature scheme that allows this. How Has This Been Tested? --- Manually, initial checkpoint contains signature.
- Loading branch information
Showing
47 changed files
with
587 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<dl> | ||
<dt>Signatures</dt> | ||
{{#if signatures}} | ||
<dt>{{signatures.length}} signatures</dt> | ||
{{#each signatures as |signature|}} | ||
<dd>{{>Signature signature}}</dd> | ||
<dd>{{>SignerSignature signature}}</dd> | ||
{{/each}} | ||
{{/if}} | ||
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<dl> | ||
<dt>Number</dt><dd>{{checkpoint_number}}</dd> | ||
<dt>Merkle root</dt><dd>{{hex merkle_root}}</dd> | ||
<dt>Signatures</dt><dd>{{>CommitteeSignatures signatures}}</dd> | ||
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<dl> | ||
<dt>Signer</dt><dd>{{hex signer}}</dd> | ||
<dt>Signature</dt><dd>{{>Signature signature}}</dd> | ||
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.