We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User can have his db to store related data e.g.
attesterId
latestTransitionedEpoch
latestTransitionedIndex
provableData
latestData
so the user doesn't have to search through all epochs
Unirep/packages/core/src/UserState.ts
Lines 284 to 299 in b51a3a4
getData
If there is no db, then use original getData to get the latest data
db
If there is a db, then new data is updated by db.provableData = db.provableData + newData [2,2,2,2] = [1,1,1,1] + [1,1,1,1]
db.provableData = db.provableData + newData
[2,2,2,2] = [1,1,1,1] + [1,1,1,1]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
User can have his db to store related data
e.g.
attesterId
latestTransitionedEpoch
latestTransitionedIndex
provableData
latestData
so the user doesn't have to search through all epochs
Unirep/packages/core/src/UserState.ts
Lines 284 to 299 in b51a3a4
Details
original
getData
proposed db
If there is no
db
, then use originalgetData
to get the latest datanew epoch original
getData
new epoch proposed db
If there is a
db
, then new data is updated bydb.provableData = db.provableData + newData
[2,2,2,2] = [1,1,1,1] + [1,1,1,1]
The text was updated successfully, but these errors were encountered: