From 47606a0da072cf764ee034d7126f8cfc547aae7b Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Mon, 25 Nov 2019 10:36:32 -0600 Subject: [PATCH] use varints for length-prefixes in sig buffer --- RFC/0002-signed-envelopes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFC/0002-signed-envelopes.md b/RFC/0002-signed-envelopes.md index bf956dd..f9be76d 100644 --- a/RFC/0002-signed-envelopes.md +++ b/RFC/0002-signed-envelopes.md @@ -96,8 +96,8 @@ When signing, a peer will prepare a buffer by concatenating the following: - The length of the `payload` field in bytes - The value of the `payload` field -The length values for each field are encoded as 64-bit unsigned integers in -network order (big-endian). +The length values for each field are encoded as unsigned variable-length +integers as defined in the [multiformats uvarint spec][uvarint]. Then they will sign the buffer according to the rules in the [peer id spec][peer-id-spec] and set the `signature` field accordingly.