mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 02:20:43 +08:00
node: Implement signed refs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::crypto;
|
||||
use crate::identity::{ProjId, UserId};
|
||||
use crate::protocol::{Context, NodeId, Timestamp, PROTOCOL_VERSION};
|
||||
use crate::storage;
|
||||
use crate::storage::refs::SignedRefs;
|
||||
|
||||
/// Message envelope. All messages sent over the network are wrapped in this type.
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
@@ -104,9 +105,7 @@ pub enum Message {
|
||||
/// User signing.
|
||||
user: UserId,
|
||||
/// Updated refs.
|
||||
refs: storage::Refs,
|
||||
/// Signature over the refs.
|
||||
signature: crypto::Signature,
|
||||
refs: SignedRefs<crypto::Unverified>,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user