Update ExitProofs-Siblings padding

This commit is contained in:
arnaucube
2020-12-29 17:45:59 +01:00
parent 8c6dc6e3f8
commit ca5870e3ba
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