mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +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:
@@ -1306,7 +1306,8 @@ mod tests {
|
||||
// peer A gets reported for sending a collation message.
|
||||
|
||||
let collator_protocol_message = protocol_v1::CollatorProtocolMessage::Declare(
|
||||
Sr25519Keyring::Alice.public().into()
|
||||
Sr25519Keyring::Alice.public().into(),
|
||||
Default::default(),
|
||||
);
|
||||
|
||||
let message = protocol_v1::CollationProtocol::CollatorProtocol(
|
||||
@@ -1572,7 +1573,8 @@ mod tests {
|
||||
|
||||
{
|
||||
let collator_protocol_message = protocol_v1::CollatorProtocolMessage::Declare(
|
||||
Sr25519Keyring::Alice.public().into()
|
||||
Sr25519Keyring::Alice.public().into(),
|
||||
Default::default(),
|
||||
);
|
||||
|
||||
let message = protocol_v1::CollationProtocol::CollatorProtocol(
|
||||
|
||||
Reference in New Issue
Block a user