From 5f205fa5ca6e027843118412b155d46aad62fed1 Mon Sep 17 00:00:00 2001 From: Hamdi Allam Date: Sat, 2 Mar 2019 12:49:00 -0800 Subject: [PATCH] Hamdi/func docs (#110) * updated docs * conf sig comment * Update plasmaMVPFunctions.md * Update plasmaMVPFunctions.md * Update plasmaMVPFunctions.md * Update plasmaMVPFunctions.md * Update plasmaMVPFunctions.md --- docs/plasmaMVPFunctions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/plasmaMVPFunctions.md b/docs/plasmaMVPFunctions.md index ce1fc54..3a8916c 100644 --- a/docs/plasmaMVPFunctions.md +++ b/docs/plasmaMVPFunctions.md @@ -1,6 +1,12 @@ # PlasmaMVP Documentation -The transaction bytes, `txBytes`, in the contract follow the convention: +The transaction bytes, `txBytes`, in the contract follows the convention: + +All fields in the transaction bytes must be padded to the EVM data type byte length. +i.e addresses must be 20 bytes, and integers must be padded to 32 bytes. Both input confirm singatures must be 130 bytes in length. +One signature(65 bytes) for each possible "grandparent" input concatted together. If not applicable, 130 zero bytes. + +The final RLP encoded txBytes will be **811** bytes in length. ``` RLP_ENCODE ([ [Blknum1, TxIndex1, Oindex1, DepositNonce1, Owner1, Input1ConfirmSig,