From 7fc51a7838ab0c94443203879b563c7343e28490 Mon Sep 17 00:00:00 2001 From: zhaohong Date: Tue, 24 Apr 2018 17:38:37 +0800 Subject: [PATCH] refactor the transaction structure --- core/Tron.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/Tron.proto b/core/Tron.proto index 98a3c3352cf..a8b986f0471 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -41,6 +41,11 @@ message Account { bytes code = 13; } +message acuthrity { + AccountId account = 1; + bytes permission_name = 2; +} + message permision { AccountId account = 1; @@ -116,11 +121,13 @@ message Transaction { int64 fee = 1; code ret = 2; } + message raw { TransactionType type = 1; int64 ref_block_num = 3; bytes ref_block_hash = 4; int64 expiration = 8; + repeated acuthrity auths = 9; // data not used bytes data = 10; repeated Contract contract = 11; @@ -128,6 +135,7 @@ message Transaction { bytes scripts = 12; int64 timestamp = 14; } + raw raw_data = 1; repeated bytes signature = 2; repeated Result ret = 5;