Make some necessary fields public
This commit is contained in:
+2
-2
@@ -21,14 +21,14 @@ pub struct TaggedClientMessage {
|
|||||||
|
|
||||||
#[derive(Serialize,Deserialize,Clone,Debug)]
|
#[derive(Serialize,Deserialize,Clone,Debug)]
|
||||||
pub struct SignedClientMessage {
|
pub struct SignedClientMessage {
|
||||||
message: ClientMessage,
|
pub message: ClientMessage,
|
||||||
// Should I enforce this being a ecdsa signature?
|
// Should I enforce this being a ecdsa signature?
|
||||||
// What is the signature of????
|
// What is the signature of????
|
||||||
// Can I reserialize the message and check the signature that way??
|
// Can I reserialize the message and check the signature that way??
|
||||||
// That would be very brittle but there isn't a good way to extract the
|
// That would be very brittle but there isn't a good way to extract the
|
||||||
// bytes using serde. I'll write something better at some point
|
// bytes using serde. I'll write something better at some point
|
||||||
#[serde(with = "serde_bytes")]
|
#[serde(with = "serde_bytes")]
|
||||||
signature: Box<[u8]>
|
pub signature: Box<[u8]>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize,Deserialize,Clone,Debug)]
|
#[derive(Serialize,Deserialize,Clone,Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user