diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index cc47a976a..cbaf889a3 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -388,7 +388,7 @@ message CheckmessageRequest { message CheckmessageResponse { bool verified = 1; - optional bytes pubkey = 2; + bytes pubkey = 2; } message CloseRequest { diff --git a/cln-grpc/src/convert.rs b/cln-grpc/src/convert.rs index e6d33b9ab..144a0b111 100644 --- a/cln-grpc/src/convert.rs +++ b/cln-grpc/src/convert.rs @@ -299,7 +299,7 @@ impl From<&responses::CheckmessageResponse> for pb::CheckmessageResponse { fn from(c: &responses::CheckmessageResponse) -> Self { Self { verified: c.verified.clone(), // Rule #2 for type boolean - pubkey: c.pubkey.as_ref().map(|v| v.to_vec()), // Rule #2 for type pubkey? + pubkey: c.pubkey.to_vec(), // Rule #2 for type pubkey } } } diff --git a/cln-rpc/src/model.rs b/cln-rpc/src/model.rs index 3a595deed..1ec55e6bf 100644 --- a/cln-rpc/src/model.rs +++ b/cln-rpc/src/model.rs @@ -1441,8 +1441,8 @@ pub mod responses { pub struct CheckmessageResponse { #[serde(alias = "verified")] pub verified: bool, - #[serde(alias = "pubkey", skip_serializing_if = "Option::is_none")] - pub pubkey: Option, + #[serde(alias = "pubkey")] + pub pubkey: Pubkey, } /// Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel