From b60069c948b4a56d05edaf624ec7e629ea78cca8 Mon Sep 17 00:00:00 2001 From: nanocryk <nanocryk@ifee.fr> Date: Fri, 23 Mar 2018 16:34:11 +0100 Subject: [PATCH] New storage layout --- rfc/0005 New Scalable Blockchain Protocol.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rfc/0005 New Scalable Blockchain Protocol.md b/rfc/0005 New Scalable Blockchain Protocol.md index 62e3c18..2bac157 100644 --- a/rfc/0005 New Scalable Blockchain Protocol.md +++ b/rfc/0005 New Scalable Blockchain Protocol.md @@ -123,12 +123,18 @@ A token stores its creation date, token class hash, a payload and its scripts. | 32 | Instance consumption script hash (same) | ... | Storage -Each storage item is a bytes array stored as +Storage is layout as | Size | Description |:----:|:--- -| 2 | Data size -| ... | Data +| 2 | Item 0 size +| 2 | Item 1 size +| 2 | Item 2 size +| | ... +| ... | Item 0 data +| ... | Item 1 data +| ... | Item 2 data +| | ... Each token can be represented by its **token hash** computed as the hash of the whole data structure above. -- GitLab