File tree 1 file changed +9
-0
lines changed
nym-node/nym-node-requests/src/api/v1/node 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,13 @@ pub struct HostKeys {
128
128
/// Base58-encoded ed25519 public key of this node. Currently, it corresponds to either mixnode's or gateway's identity.
129
129
#[ schemars( with = "String" ) ]
130
130
#[ cfg_attr( feature = "openapi" , schema( value_type = String ) ) ]
131
+ #[ serde( with = "bs58_ed25519_pubkey" ) ]
131
132
pub ed25519_identity : ed25519:: PublicKey ,
132
133
133
134
#[ deprecated( note = "use explicit primary_x25519_sphinx_key instead" ) ]
134
135
#[ schemars( with = "String" ) ]
135
136
#[ cfg_attr( feature = "openapi" , schema( value_type = String ) ) ]
137
+ #[ serde( with = "bs58_x25519_pubkey" ) ]
136
138
pub x25519_sphinx : x25519:: PublicKey ,
137
139
138
140
/// Current, active, x25519 sphinx key clients are expected to use when constructing packets
@@ -413,4 +415,11 @@ mod tests {
413
415
let res = serde_json:: from_str :: < SignedHostInformation > ( legacy_raw) ;
414
416
assert ! ( res. is_ok( ) ) ;
415
417
}
418
+
419
+ #[ test]
420
+ fn current_host_information_deserialisation_and_verification ( ) {
421
+ let current_raw = r#"
422
+
423
+ "# ;
424
+ }
416
425
}
You can’t perform that action at this time.
0 commit comments