mirror of https://github.com/poanetwork/quorum.git
This commit implements a dual state approach. The dual state approach separates public and private state by making the core vm environment context aware. Although not currently implemented it will need to prohibit value transfers and it must initialise all transactions from accounts on the public state. This means that sending transactions increments the account nonce on the public state and contract addresses are derived from the public state when initialised by a transaction. For obvious reasons, contract created by private contracts are still derived from public state. This is required in order to have consensus over the public state at all times as non-private participants would still process the transaction on the public state even though private payload can not be decrypted. This means that participants of a private group must do the same in order to have public consensus. However the creation of the contract and interaction still occurs on the private state. It implements support for the following calling model: S: sender, (X): private, X: public, ->: direction, [ ]: read only mode 1. S -> A -> B 2. S -> (A) -> (B) 3. S -> (A) -> [ B -> C ] It does not support 1. (S) -> A 2. (S) -> (A) 3. S -> (A) -> B Implemented "read only" mode for the EVM. Read only mode is checked during any opcode that could potentially modify the state. If such an opcode is encountered during "read only", it throws an exception. The EVM is flagged "read only" when a private contract calls in to public state. |
||
---|---|---|
.. | ||
runtime | ||
analysis.go | ||
asm.go | ||
common.go | ||
contract.go | ||
contracts.go | ||
disasm.go | ||
doc.go | ||
environment.go | ||
errors.go | ||
gas.go | ||
instructions.go | ||
jit.go | ||
jit_optimiser.go | ||
jit_test.go | ||
jit_util.go | ||
jit_util_test.go | ||
jump_table.go | ||
jump_table_test.go | ||
log.go | ||
log_test.go | ||
logger.go | ||
logger_test.go | ||
memory.go | ||
opcodes.go | ||
segments.go | ||
stack.go | ||
util_test.go | ||
virtual_machine.go | ||
vm.go | ||
vm_jit.go | ||
vm_jit_fake.go |