You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2022. It is now read-only.
@@ -246,16 +255,32 @@ impl Default for Ed25519Signature {
246
255
}
247
256
}
248
257
258
+
// Notes for Serialize and Deserialize implementations of Ed25519Signature:
259
+
// - Since `bytes` field contains serialized `sig` field, it can be used directly for ser/de of
260
+
// the Ed25519Signature struct.
261
+
// - The `serialize_struct()` function and deserialization visitor add complexity, but they are necessary for
262
+
// Ed25519Signature ser/de to work with `serde_reflection`.
263
+
// `serde_reflection` works poorly [with aliases and nameless types](https://docs.rs/serde-reflection/latest/serde_reflection/index.html#unsupported-idioms).
264
+
// - Serialization output and deserialization input support human readable (base64) and non-readable (binary) formats
265
+
// separately (supported for other schemes since #460). Different struct field names ("base64" vs "raw") are used
266
+
// to disambiguate the formats.
267
+
// These notes may help if Ed25519Signature needs to change the struct layout, or its ser/de implementation.
0 commit comments