X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=protocol%2Fbc%2Fbc.proto;h=59190d4c296af428f224cf2ae4e78a73333bfe87;hb=b6fc1cb4e358b34fc57e630d3d491590daf59a5f;hp=b12c67d09e6ff2edfcc413cbaa8b1d1ef29289cc;hpb=1accb05ca43992587ace7559732900098953980f;p=bytom%2Fvapor.git diff --git a/protocol/bc/bc.proto b/protocol/bc/bc.proto index b12c67d0..59190d4c 100644 --- a/protocol/bc/bc.proto +++ b/protocol/bc/bc.proto @@ -48,23 +48,6 @@ message ValueDestination { uint64 position = 3; } -message Proof { - bytes sign = 1; - bytes controlProgram = 2; -} - -message BytomBlockHeader { - uint64 version = 1; - uint64 height = 2; - Hash previous_block_id = 3; - uint64 timestamp = 4; - Hash transactions_root = 5; - Hash transaction_status_hash = 6; - uint64 nonce = 7; - uint64 bits = 8; - TransactionStatus transaction_status = 9; -} - message BlockHeader { uint64 version = 1; uint64 height = 2; @@ -72,10 +55,8 @@ message BlockHeader { uint64 timestamp = 4; Hash transactions_root = 5; Hash transaction_status_hash = 6; - uint64 nonce = 7; - uint64 bits = 8; - TransactionStatus transaction_status = 9; - Proof Proof = 10; + TransactionStatus transaction_status = 7; + repeated bytes witness_arguments = 8; } message TxHeader { @@ -106,37 +87,49 @@ message Coinbase { bytes arbitrary = 2; } -message Output { +message IntraChainOutput { ValueSource source = 1; Program control_program = 2; uint64 ordinal = 3; } -message Retirement { - ValueSource source = 1; - uint64 ordinal = 2; +message CrossChainOutput { + ValueSource source = 1; + Program control_program = 2; + uint64 ordinal = 3; } -message Issuance { - Hash nonce_hash = 1; - AssetAmount value = 2; - ValueDestination witness_destination = 3; - AssetDefinition witness_asset_definition = 4; - repeated bytes witness_arguments = 5; - uint64 ordinal = 6; +message VoteOutput { + ValueSource source = 1; + Program control_program = 2; + uint64 ordinal = 3; + bytes vote = 4; } -message Spend { +message VetoInput { Hash spent_output_id = 1; ValueDestination witness_destination = 2; repeated bytes witness_arguments = 3; uint64 ordinal = 4; } -message Claim { +message Retirement { + ValueSource source = 1; + uint64 ordinal = 2; +} + +message Spend { Hash spent_output_id = 1; ValueDestination witness_destination = 2; repeated bytes witness_arguments = 3; uint64 ordinal = 4; - repeated bytes Peginwitness = 5; -} \ No newline at end of file +} + +message CrossChainInput { + Hash mainchain_output_id = 1; + ValueDestination witness_destination = 2; + Program control_program = 3; + AssetDefinition asset_definition = 4; + repeated bytes witness_arguments = 5; + uint64 ordinal = 6; +}