snarkOS
snarkOS copied to clipboard
Feature: get all the ciphertexts from the LedgerState
Motivation
This PR is related to #1725. It has some improvements in performance and now it returns all ciphertexts in the correct order. The motivation is to get all the ciphertexts directly from LedgerState to avoid iterating over all the transactions and commitments to get them.
Test Plan
There is a new test created in storage/src/state/tests.rs
test_get_all_ciphertexts- This test asserts that this function gets all the ciphertexts in the ledger without a specific order.
Admin: Please respond with "build this" in order to build this PR.
These changes are deprecated with the new version of snarkOS and snarkVM.