From 4117c361a0495963ad19126d288ef0fa34b456f3 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 14 Apr 2023 10:52:02 -0600 Subject: [PATCH] ecdsa: `serde` doc fixup The width of a serialized `Signature` is generic and based on the size of the underlying curve's modulus, not a fixed 64-bytes. --- ecdsa/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index 4842d507..6304363b 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -192,8 +192,8 @@ pub type SignatureBytes = GenericArray>; /// serializing and deserializing ECDSA signatures using the `Serialize` and /// `Deserialize` traits. /// -/// The serialization uses a 64-byte fixed encoding when used with binary -/// formats, and a hexadecimal encoding when used with text formats. +/// The serialization uses a hexadecimal encoding when used with +/// "human readable" text formats, and a binary encoding otherwise. #[derive(Clone, Eq, PartialEq)] pub struct Signature { r: ScalarPrimitive,