Skip to content

Commit 31ebc99

Browse files
authored
ecdsa: serde doc fixup (#712)
The width of a serialized `Signature` is generic and based on the size of the underlying curve's modulus, not a fixed 64-bytes.
1 parent 9433d57 commit 31ebc99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecdsa/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ pub type SignatureBytes<C> = GenericArray<u8, SignatureSize<C>>;
192192
/// serializing and deserializing ECDSA signatures using the `Serialize` and
193193
/// `Deserialize` traits.
194194
///
195-
/// The serialization uses a 64-byte fixed encoding when used with binary
196-
/// formats, and a hexadecimal encoding when used with text formats.
195+
/// The serialization uses a hexadecimal encoding when used with
196+
/// "human readable" text formats, and a binary encoding otherwise.
197197
#[derive(Clone, Eq, PartialEq)]
198198
pub struct Signature<C: PrimeCurve> {
199199
r: ScalarPrimitive<C>,

0 commit comments

Comments
 (0)