Questions tagged [persistence-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
200 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 ...
3
votes
2answers
74 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 ...
2
votes
3answers
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 ...
2
votes
1answer
286 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 ...
14
votes
3answers
702 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) ...