Merge pull request #436 from hermeznetwork/feature/exit-proof-siblings

Update ExitProofs-Siblings padding
This commit is contained in:
a_bennassar
2020-12-30 11:13:22 +01:00
committed by GitHub
6 changed files with 81 additions and 5 deletions

View File

@@ -328,7 +328,11 @@ func (s *StateDB) MTGetProof(idx common.Idx) (*merkletree.CircomVerifierProof, e
if s.MT == nil {
return nil, tracerr.Wrap(ErrStateDBWithoutMT)
}
return s.MT.GenerateCircomVerifierProof(idx.BigInt(), s.MT.Root())
p, err := s.MT.GenerateSCVerifierProof(idx.BigInt(), s.MT.Root())
if err != nil {
return nil, tracerr.Wrap(err)
}
return p, nil
}
// MTGetRoot returns the current root of the underlying Merkle Tree