arnaucube
0cf1ed217b
Abstract TxProcessor from StateDB
- Abstract TxProcessor from StateDB
- Upgrade to last version of go-merkletree for the key-value DB usage
3 years ago
Eduard S
2205fcadbc
Delete old checkpoints in stateDB automatically
Introduce a constructor parameter for the StateDB called `keep`, which tells
how many checkpoints to keep. When doing a new checkpoint, if the number of
existing checkpoints exeeds `keep`, the oldest ones will be deleted.
3 years ago
arnaucube
150597c282
Parametrize ChainID
3 years ago
arnaucube
4b10549822
mv of babyjub.PublicKey to babyjub.PublicKeyComp
Update usage of `*babyjub.PublicKey` to `babyjub.PublicKeyComp`
- when the key is not defined, internally is used `babyjub.EmptyBJJComp`, which is a `[32]byte` of zeroes of type `babyjub.PublicKeyComp`
- the API continues returning `nil` when the key is not defined
3 years ago
Eduard S
ced42634da
Wrap all errors with tracerr
4 years ago
arnaucube
f65a6047b4
Add Til set w minimum flow, small fixes at StateDB
4 years ago
arnaucube
aaa71a6b11
StateDB store Idxs with TokenID at the db-key
4 years ago
Eduard S
88ddbbcddc
Delete tmp folders from tests, Resolve #105
4 years ago
Arnau B
5097939b12
Avoid using pointers in common
4 years ago
a_bennassar
49366e3fa4
Feature/null refactor ( #173 )
* WIP: rebase
* Make nullable fields use pointers
4 years ago
arnaucube
3374a4754d
Add StateDB compute nonces on ProcessTx L2Tx
Add StateDB compute nonces on ProcessTx L2Tx, and update StateDB for
type TypeSynchronizer, TypeTxSelector, TypeBatchBuilder
4 years ago
arnaucube
11c45cfc2f
Update TxProcessor L2Tx logic for case ToIdx==0
4 years ago
arnaucube
934b6120ae
Add StateDB set & get Idx by EthAddr & BJJ methods
4 years ago
arnaucube
69fe471f11
Add StateTree leafs & ExtTree data ZKI calculation
4 years ago
arnaucube
a7fe80f150
Refactor ZKInputs & add struct initialization
Refactor ZKInputs & add struct initialization & add BJJCompressedTo256BigInts util
4 years ago