As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [persistence-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
240 views

What are the main differences betwen EOSIO multi_index and Boost multi_index?

Inspired by this comment, I was wondering what are the main differences between eosio::multi_index and boost:multi_index and why do they exist? The documentation notes that there are important ...
confused00's user avatar
  • 5,554
3 votes
2 answers
91 views

Standards for handling private user-data in the persistence API?

When storing and accessing sensitive user-data, using the Multi-Index DB API, what considerations should be made to respect the user's privacy? For sake of example, let's say I want to create a dApp ...
Aaron Voelker's user avatar
3 votes
3 answers
1k views

How to store contract state as singleton?

What is the best way to store fields specific for contract, for example if contract has 3 fields (2 strings, 1 uint64_t) and they can be changed? Should I create new table for this, it would always be ...
Bida's user avatar
  • 281
2 votes
1 answer
305 views

How the persistent database is saved on the blockchain

I know that the eos blockchain saves the transactions generated data in a persistent database. It has methods to insert, modify and erase data. As the blockchain is supposed to be immutable, does the ...
Evandro Lorenzoni's user avatar
14 votes
3 answers
794 views

Are Tables/DBs stored in RAM and held by multiple block producers?

We do have the Persistence API to store data for a smart contract in the EOSIO database. I was wondering where this database is located. I understood that it is patterned after Boost Multi-Index. 1) ...
tmm's user avatar
  • 2,114