mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
ZKInputs update:
- Add ZKInputs parser to JSON - Update ProcessTxs to last go-merkletree version changes - Add StateDB test to generate ZKInputs to check inside a circom circuit - Small fix at Til CoordinatorTx.LoadAmount=0
This commit is contained in:
@@ -353,10 +353,10 @@ func GenExitTree(n int, batches []common.Batch, accounts []common.Account) []com
|
||||
AccountIdx: accounts[i%len(accounts)].Idx,
|
||||
MerkleProof: &merkletree.CircomVerifierProof{
|
||||
Root: &merkletree.Hash{byte(i), byte(i + 1)},
|
||||
Siblings: []*big.Int{
|
||||
big.NewInt(int64(i) * 10),
|
||||
big.NewInt(int64(i)*100 + 1),
|
||||
big.NewInt(int64(i)*1000 + 2)},
|
||||
Siblings: []*merkletree.Hash{
|
||||
merkletree.NewHashFromBigInt(big.NewInt(int64(i) * 10)),
|
||||
merkletree.NewHashFromBigInt(big.NewInt(int64(i)*100 + 1)),
|
||||
merkletree.NewHashFromBigInt(big.NewInt(int64(i)*1000 + 2))},
|
||||
OldKey: &merkletree.Hash{byte(i * 1), byte(i*1 + 1)},
|
||||
OldValue: &merkletree.Hash{byte(i * 2), byte(i*2 + 1)},
|
||||
IsOld0: i%2 == 0,
|
||||
|
||||
@@ -150,7 +150,7 @@ func (tc *Context) GenerateBlocks(set string) ([]common.BlockData, error) {
|
||||
FromBJJ: tc.Users[inst.from].BJJ.Public(),
|
||||
TokenID: inst.tokenID,
|
||||
Amount: big.NewInt(0),
|
||||
LoadAmount: big.NewInt(int64(inst.loadAmount)),
|
||||
LoadAmount: big.NewInt(0),
|
||||
Type: common.TxTypeCreateAccountDeposit, // as txTypeCreateAccountDepositCoordinator is not valid oustide Til package
|
||||
}
|
||||
testTx := L1Tx{
|
||||
|
||||
Reference in New Issue
Block a user