plugeth/core/vm
Piotr Dyraga 2890f060b7
core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09
The precompile at 0x09 wraps the BLAKE2b F compression function:
https://tools.ietf.org/html/rfc7693#section-3.2

The precompile requires 6 inputs tightly encoded, taking exactly 213
bytes, as explained below.

- `rounds` - the number of rounds - 32-bit unsigned big-endian word
- `h` - the state vector - 8 unsigned 64-bit little-endian words
- `m` - the message block vector - 16 unsigned 64-bit little-endian words
- `t_0, t_1` - offset counters - 2 unsigned 64-bit little-endian words
- `f` - the final block indicator flag - 8-bit word

[4 bytes for rounds][64 bytes for h][128 bytes for m][8 bytes for t_0]
[8 bytes for t_1][1 byte for f]

The boolean `f` parameter is considered as `true` if set to `1`.
The boolean `f` parameter is considered as `false` if set to `0`.
All other values yield an invalid encoding of `f` error.

The precompile should compute the F function as specified in the RFC
(https://tools.ietf.org/html/rfc7693#section-3.2) and return the updated
state vector `h` with unchanged encoding (little-endian).

See EIP-152 for details.
2019-08-21 13:09:15 +03:00
..
runtime all: clean up and proerly abstract database access 2019-03-06 13:35:03 +02:00
testdata core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
analysis_test.go core/vm: faster create/create2 (#17806) 2018-10-04 18:15:37 +03:00
analysis.go core/vm: faster create/create2 (#17806) 2018-10-04 18:15:37 +03:00
common.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
contract.go core/vm: fix comment grammar (#19923) 2019-08-07 12:53:16 +03:00
contracts_test.go core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09 2019-08-21 13:09:15 +03:00
contracts.go core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09 2019-08-21 13:09:15 +03:00
doc.go core/vm: remove JIT VM codes (#16362) 2018-03-26 13:48:04 +03:00
eips.go Eip 1344 (ChainID opcode) (#19921) 2019-08-08 16:20:28 +03:00
errors.go core/vm: support for multiple interpreters (#17093) 2018-07-25 08:56:39 -04:00
evm.go core/vm: fix comment grammar (#19923) 2019-08-07 12:53:16 +03:00
gas_table_test.go core/vm: polish gas PR, fix tests, make table driven 2019-04-01 17:10:42 +03:00
gas_table.go core/vm, params: refactor chain configuration (#19735) 2019-08-05 11:01:02 +03:00
gas.go core/vm, params: refactor chain configuration (#19735) 2019-08-05 11:01:02 +03:00
gen_structlog.go core/vm: adds refund as part of the json standard trace (#17910) 2018-10-23 16:28:18 +02:00
instructions_test.go core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
instructions.go core/vm, params: refactor chain configuration (#19735) 2019-08-05 11:01:02 +03:00
int_pool_verifier_empty.go all: update license information 2017-04-14 10:29:00 +02:00
int_pool_verifier.go all: update license information 2017-04-14 10:29:00 +02:00
interface.go core/state: fix state iterator (#19127) 2019-04-05 09:44:02 +03:00
interpreter.go Eip 1884 v3 (#19743) 2019-08-08 12:07:23 +03:00
intpool_test.go core/vm: reuse bigint pools across transactions (#17070) 2018-07-03 13:06:42 +03:00
intpool.go core/vm: reuse bigint pools across transactions (#17070) 2018-07-03 13:06:42 +03:00
jump_table.go Eip 1884 v3 (#19743) 2019-08-08 12:07:23 +03:00
logger_json.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
logger_test.go core/vm, eth/tracers: use pointer receiver for GetRefund (#18018) 2018-11-08 13:07:15 +01:00
logger.go core/vm: fix typos in comments (#19391) 2019-04-04 12:30:10 +02:00
memory_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
memory.go all: fix various comment typos (#17748) 2018-09-25 12:26:35 +02:00
opcodes.go Eip 1344 (ChainID opcode) (#19921) 2019-08-08 16:20:28 +03:00
stack_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
stack.go core/vm: clear linter warnings (#17057) 2018-06-26 15:56:25 +03:00