From 088d0dc94b9341faaf433587f2eed9c1d613841e Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 8 Jun 2020 14:19:32 +1000 Subject: [PATCH] design: Make parsing explicit in the design doc --- design/design.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/design/design.md b/design/design.md index d8296ae5b..f6331c957 100644 --- a/design/design.md +++ b/design/design.md @@ -56,6 +56,7 @@ None: these are the core data structure definitions. - `Transaction`, - `Address`, - `KeyPair`... +- parsing bytes into these data structures - definitions of core traits, e.g., - `ZcashSerialize` and `ZcashDeserialize`, which perform @@ -113,8 +114,9 @@ routing outbound requests to appropriate peers. ### Responsible for -- block storage API - - operates on raw bytes for blocks +- block and transaction storage APIs + - operates on parsed block and transaction structs + - these structs can be converted from and into raw bytes - primarily aimed at network replication, not at processing - can be used to rebuild the database below - maintaining a database of tx, address, etc data