Commit Graph

55 Commits

Author SHA1 Message Date
arnaucube
7fa658cc84 Add PoolL2Tx verify signature needed methods
Implements the hash to be signed from PoolL2Tx, compatible with javascript version.
Implements the signature verification for a given PoolL2Tx.
2020-08-24 09:46:25 +02:00
a_bennassar
869ab519a4 Merge pull request #69 from hermeznetwork/feature/txcompresseddata
Add TxCompressedData & V2 with some extra parsers for common
2020-08-21 16:36:05 +02:00
arnaucube
a28c81f4ae Add TxCompressedData & V2 with some extra parsers for common 2020-08-21 15:35:31 +02:00
a_bennassar
3f63cd7cd0 Merge pull request #66 from hermeznetwork/feature/statedb-cu
Unify StateDB MT{Create/Update}Account
2020-08-20 16:25:37 +02:00
arnaucube
12aa31e46b Unify StateDB MT{Create/Update}Account
Previously as the txprocessor.go methods were specific for the BatchBuilder,
the MTCreateAccount & CreateAccount and MTUpdateAccount & UpdateAccount were
also designed to be used by BatchBuilder and TxSelector depending on the
MerkleTree usage calling one kind of method or anotherone.

But now that this methods are being called directly by the StateDB (through the
methods in txprocessors.go), to allow also the methods usage from the
Synchronizer, there can not be the MT and no-MT methods separated, so this
commit unifies MTCreateAccount with CreateAccount, and MTUpdateAccount with
UpdateAccount, which internally will update the MerkleTree depending if the
specific StateDB in usage has the MerkleTree defined or not.
2020-08-20 15:53:16 +02:00
a_bennassar
82d5aae745 Merge pull request #64 from hermeznetwork/feature/testing-framework
Feature/testing framework language
2020-08-20 13:55:10 +02:00
arnaucube
cfa441e1ac Migrate TxProcessors from BatchBuilder to StateDB
Migrate TxProcessors from BatchBuilder to StateDB in order to be used by
BatchBuilder & Synchronizer
2020-08-20 12:06:28 +02:00
arnaucube
8eb42c011c Add tx L1&L2 test generation & keys for TestingFramework
Add test-lang Fee & ForceExit option
2020-08-20 11:57:44 +02:00
arnaucube
e2d4599690 Add tx generation lang interpreter 2020-08-19 15:58:20 +02:00
a_bennassar
6c0c528b17 Merge pull request #61 from hermeznetwork/feature/log
Add log system
2020-08-18 11:35:23 +02:00
arnaucube
fab3b865bb Add log system 2020-08-18 11:25:23 +02:00
arnau
5d4840ce5c Merge pull request #59 from hermeznetwork/feature/sql-tables4
Update SQL schemas
2020-08-17 16:55:54 +02:00
arnaucube
c702442287 Update Coordinator & BatchBuilder & TxSelector to new SQL schemas changes 2020-08-17 16:16:25 +02:00
a_bennassar
cb1b820256 Update SQL schemas 2020-08-17 16:16:17 +02:00
a_bennassar
bf1a648091 Merge pull request #57 from hermeznetwork/feature/statedb-checkpoints
Feature/statedb checkpoints
2020-08-17 15:55:59 +02:00
arnaucube
aa003063f6 Update BatchBuilder & TxSelector to new StateDB 2020-08-17 13:38:48 +02:00
arnaucube
205db8e4d3 Implement StateDB Checkpoints & Resets system 2020-08-17 11:27:33 +02:00
Toni Ramírez
db927ddd24 Add utils Float16-BigInt converters
* 16 bits fix encoding

* Types modification

* Rounding loss check

* Clean up a bit and add benchmarks

Unneded usage of big.Int has been removed

Conversion methods are now methods/constructors of Float16 to make the code
more idiomatic.

Co-authored-by: Toni Ramírez <toni@iden3.com>
Co-authored-by: arnaucube <root@arnaucube.com>
Co-authored-by: Eduard S <eduard@iden3.io>
2020-08-14 17:27:34 +02:00
Eduard S
58cf35f6ea Merge pull request #52 from hermeznetwork/feature/init-coordinator
Initial Coordinator (OpManager) structure
2020-08-14 17:25:21 +02:00
arnaucube
8390e4a784 Add initial structure Coordinator Forge Sequence 2020-08-14 14:06:28 +02:00
arnau
378b7be47d Merge pull request #53 from hermeznetwork/feature/updategha
Remove goarch 386 and go-version 1.13 from GHA
2020-08-14 11:07:25 +02:00
Eduard S
2e5ac8cfb6 Remove goarch 386 and go-version 1.13 from GHA 2020-08-14 09:59:25 +02:00
arnaucube
a1c339c918 Add BatchQueue implementation & minor updates 2020-08-13 18:25:50 +02:00
a_bennassar
9df30affc6 Merge pull request #50 from hermeznetwork/feature/txselector-int-statedb
Integrate TxSelector with StateDB
2020-08-13 13:15:18 +02:00
arnaucube
60fa76b4d2 Integrate TxSelector with StateDB 2020-08-13 13:07:30 +02:00
Eduard S
b28b13d620 Merge pull request #44 from hermeznetwork/feature/batchbuilder-integratedb
Feature/batchbuilder integratedb
2020-08-11 17:30:36 +02:00
arnaucube
350bac631e Integrate BatchBuilder with StateDB 2020-08-11 16:44:51 +02:00
a_bennassar
428dcd7590 create sql tables (#40)
Co-authored-by: Eduard S <eduard@iden3.io>
2020-08-11 16:25:55 +02:00
a_bennassar
1313a5aabd Merge pull request #38 from hermeznetwork/feature/statedb
Add StateDB & LocalStateDB
2020-08-11 10:53:34 +02:00
arnau
edb8974a5a Apply fix method description typos
Co-authored-by: Eduard S. <eduard@iden3.io>
2020-08-10 16:46:15 +02:00
arnaucube
d8cb7298e0 Add StateDB & LocalStateDB 2020-08-07 10:59:30 +02:00
Eduard S
4bff96859c Merge pull request #31 from hermeznetwork/feature/batchbuilder-init
Feature/batchbuilder init
2020-08-06 16:04:54 +02:00
arnau
2109d9f1cf Apply suggestions from code review
Co-authored-by: Eduard S. <eduard@iden3.io>
2020-08-06 12:50:52 +02:00
arnaucube
16555b51e3 Update Leaf to new spec (Sign+Ay) 2020-08-05 16:06:31 +02:00
arnaucube
bcd9f96e1b Add batchbuilder applyCreateLeaf, applyDeposit, applyTransfer 2020-08-05 15:31:27 +02:00
arnaucube
37cefb0057 Add common> Idx parsers 2020-08-05 15:26:15 +02:00
arnaucube
f3cfba1bbe Add initial structure of BatchBuilder 2020-08-05 15:22:51 +02:00
arnaucube
dd1901709c Add common/Leaf struct & parsers (bigint & byte arrays) 2020-08-05 15:22:48 +02:00
a_bennassar
dbbc3098e7 Merge pull request #27 from hermeznetwork/feature/common-leaf
Add common/Leaf struct & parsers (bigint & byte arrays)
2020-08-05 15:14:43 +02:00
arnaucube
59644c3435 Add common/Leaf struct & parsers (bigint & byte arrays) 2020-08-05 13:32:24 +02:00
Eduard S
2f93848292 Merge pull request #26 from hermeznetwork/feature/register-common-update
Update to follow DB spec
2020-08-03 10:31:18 +02:00
a_bennassar
638defd031 Update to follow DB spec 2020-08-03 10:26:29 +02:00
arnau
2c247bf9c3 Priceupdater-v0 (#23)
* First price-updater implementation

* Lint corrections

* Structs revision

* Read Write Mutex

* Review price updater and apply small changes

Co-authored-by: Toni Ramírez <toni@iden3.com>
Co-authored-by: Eduard S <eduard@iden3.io>
2020-07-31 10:23:52 +02:00
arnau
819b29d9ba Merge pull request #11 from hermeznetwork/feature/txpool-interface
Definition of txpool interface
2020-07-29 15:23:39 +02:00
a_bennassar
014ceba7c7 Definition of txpool interface 2020-07-29 14:33:25 +02:00
Eduard S
09e26537b2 Merge pull request #4 from hermeznetwork/feature/common-first-ite
Initial draft of the common structs
2020-07-28 17:16:01 +02:00
a_bennassar
1d8f9411f7 Review changes and operator -> coordinator 2020-07-28 16:54:28 +02:00
a_bennassar
b9936f8564 Initial dract of the common structs 2020-07-28 12:37:36 +02:00
Eduard S
ecf731982e Merge pull request #6 from hermeznetwork/fix/imports
Fix import paths
2020-07-24 16:10:55 +02:00
arnaucube
c22ea9ee94 Fix import paths 2020-07-24 16:08:23 +02:00