mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +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:
@@ -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