arnaucube
fd1e9c25ee
Add linter checks to GHA & Fix code to pass lints
Add linter checks to GHA & Fix code to pass lints.
The linters added are:
- whitespace: Tool for detection of leading and trailing whitespace
- gosec: Inspects source code for security problems
- gci: Gci control golang package import order and make it always deterministic
- misspell: Finds commonly misspelled English words in comments
- gomnd: An analyzer to detect magic numbers
The file utils/utils.go is excluded from the checks of gomnd, as uses magic numbers through the code
4 years ago
arnaucube
9309722dfc
Update StateDB to new & ExitInfo struct & BatchNum
Update StateDB to new & ExitInfo struct & BatchNum
Also a small fix at txselector & log packages
4 years ago
Arnau B
3e7173b1da
Impl historyDB methods for sync main loop
4 years ago
Arnau B
c108739c24
Add usefull methods for reorg
4 years ago
Arnau B
1cbf54acc7
Add sync interface
4 years ago
arnaucube
b4044a2ef7
Add abstraction method of processTxs to StateDB
- Update GHA lint.yml increasing timeout time to avoid GHA Lint errors
- Update common.BatchNum & common.Idx & common.Nonce usage in StateDB
- Add abstraction method of processTxs to StateDB
- Which will be used by Synchronizer & BatchBuilder
4 years ago
arnaucube
b33d18ff55
Import & adapt iden/go-iden3-core/eth/client
4 years ago
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.
4 years ago
arnaucube
a28c81f4ae
Add TxCompressedData & V2 with some extra parsers for common
4 years ago
arnaucube
8eb42c011c
Add tx L1&L2 test generation & keys for TestingFramework
Add test-lang Fee & ForceExit option
4 years ago
arnaucube
e2d4599690
Add tx generation lang interpreter
4 years ago
arnaucube
c702442287
Update Coordinator & BatchBuilder & TxSelector to new SQL schemas changes
4 years ago
a_bennassar
cb1b820256
Update SQL schemas
4 years ago
arnaucube
8390e4a784
Add initial structure Coordinator Forge Sequence
4 years ago
arnaucube
60fa76b4d2
Integrate TxSelector with StateDB
4 years ago
a_bennassar
428dcd7590
create sql tables ( #40 )
Co-authored-by: Eduard S <eduard@iden3.io>
4 years ago
arnau
edb8974a5a
Apply fix method description typos
Co-authored-by: Eduard S. <eduard@iden3.io>
4 years ago
arnaucube
d8cb7298e0
Add StateDB & LocalStateDB
4 years ago
arnau
2109d9f1cf
Apply suggestions from code review
Co-authored-by: Eduard S. <eduard@iden3.io>
4 years ago
arnaucube
16555b51e3
Update Leaf to new spec (Sign+Ay)
4 years ago
arnaucube
bcd9f96e1b
Add batchbuilder applyCreateLeaf, applyDeposit, applyTransfer
4 years ago
arnaucube
37cefb0057
Add common> Idx parsers
4 years ago
arnaucube
f3cfba1bbe
Add initial structure of BatchBuilder
4 years ago
arnaucube
dd1901709c
Add common/Leaf struct & parsers (bigint & byte arrays)
4 years ago
arnaucube
59644c3435
Add common/Leaf struct & parsers (bigint & byte arrays)
4 years ago
a_bennassar
638defd031
Update to follow DB spec
4 years ago
a_bennassar
1d8f9411f7
Review changes and operator -> coordinator
4 years ago
a_bennassar
b9936f8564
Initial dract of the common structs
4 years ago