bnb-chain/zkbnb

Witness service constructs correct empty tx witness for block circuit

lightning-li opened this issue · 1 comments

Describe the Issue
See the block circuit here: bnb-chain/zkbnb-crypto#46

To Reproduce
N/A

If applicable, add screenshots to help explain your problem.

Expected behavior
Witness service constructs correct empty tx witness for block circuit as follows:

  • when calling EmptyTx(stateRoot[]byte) function, pass new StateRoot which generated by applying previous non-empty tx.

#205 fixed in this pr, will close it.