mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-02 07:17:09 +00:00
collator-protocol: add message authentication (#2635)
* collator: authenticate collator protocol messages * fix tests compilation * node: verify collator protocol signatures in tests * collator: fix tests * implementers-guide: update CollatorProtocol messages * collator: add test for verification of collator protocol signatures * node: remove fixmes * node: remove signature from advertisecollation message * node: add magic constant to Declare message signature payload
This commit is contained in:
1 parent
358fa9f22a
commit
bfbb078525
12 files changed
+255
-109
No files matched your search
@@ -102,10 +102,11 @@ enum StatementDistributionV1Message {
|
||||
|
||||
```rust
|
||||
enum CollatorProtocolV1Message {
|
||||
/// Declare the intent to advertise collations under a collator ID.
|
||||
Declare(CollatorId),
|
||||
/// Advertise a collation to a validator. Can only be sent once the peer has declared
|
||||
/// that they are a collator with given ID.
|
||||
/// Declare the intent to advertise collations under a collator ID, attaching a
|
||||
/// signature of the `PeerId` of the node using the given collator ID key.
|
||||
Declare(CollatorId, CollatorSignature),
|
||||
/// Advertise a collation to a validator. Can only be sent once the peer has
|
||||
/// declared that they are a collator with given ID.
|
||||
AdvertiseCollation(Hash, ParaId),
|
||||
/// Request the advertised collation at that relay-parent.
|
||||
RequestCollation(RequestId, Hash, ParaId),
|
||||
|
||||
Reference in new issue
Block a user