From 2b851e654a269e1c1740b4bd5f2cde53922a081e Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Thu, 6 May 2021 11:36:42 -0300 Subject: [PATCH] unpack Signature in MsgFinalSignature --- rfcs/0001-messages.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/rfcs/0001-messages.md b/rfcs/0001-messages.md index b5f57db..dbbb37b 100644 --- a/rfcs/0001-messages.md +++ b/rfcs/0001-messages.md @@ -125,7 +125,8 @@ struct MsgSignatureShare { // The final signature is broadcasted by the aggegator // to any participant. struct MsgFinalSignature { - final_signature: frost::Signature, + // The r_bytes and s_bytes needed to build the frost::Signature + final_signature: ([u8; 32], [u8; 32]), } ``` @@ -205,14 +206,6 @@ Conversion from one type to the other is trivial: https://docs.rs/jubjub/0.6.0/jubjub/struct.AffinePoint.html#impl-From%3CExtendedPoint%3E https://docs.rs/jubjub/0.6.0/jubjub/struct.ExtendedPoint.html#impl-From%3CAffinePoint%3E -### FROST types - -`Payload`s also use some types that are defined in the `redjubjub` crate. Here we describe them from a serialization point of view. - -#### `Signature` - -Defined in `signature.rs` consist of 2 `[u8; 32]` arrays. - ### Payload Payload part of the message is variable in size and depends on message type. @@ -249,7 +242,7 @@ Bytes | Field name | Data type Bytes | Field name | Data type ------|------------|----------- -64 | signature | Signature +64 | signature | ([u8; 32], [u8; 32]) ## Testing plan