kittybest / my-badge Goto Github PK
View Code? Open in Web Editor NEWMy attester app built from unirep protocol.
My attester app built from unirep protocol.
Why?
Possible Solution
Now the userState.sync
will sync all events on chain, let the synchronizer of each userState only sync related events.
Modify deploy.mjs
:
Unirep.sol
only onceinput
field on Join Pageupdate
, check if there's access_token
--> if yes, get rep directly, --> if no, oauth first.isSigningUp
to relay to decide whether to sign up or notaccess_token
and isSigningUp
to userdirectly search from the contract:
console.error
message in error boxcalled updateRep
:
access_token
and repProof
to relayaccess_token
to get user's followers/subscribers/likes/stars...etcshould contain:
config.js
, should contain all contracts' addressaccess_token
or not (--> display connected or not connected)hasSignedUp
reputation
(provable/general)it's quite similar as signup flow on JoinPage, but something's different:
redirectDestination
should set to /userWHY we need this feature?
METHODS
state_tree_root
be calculated from the proof matched the current state_tree_root
(refer to epochKeyProof function check, need to update app contract)getTop5()
and getMine(epochKey, epoch)
to the relay (need to have a new router)parseInt
...!!!!!NOTICE
all the epoch key stored in the db is using BigInt.toString() (instead of hex number)
attesterId
to signup
====== Some thoughts ======
stateTransition
functionstateTransition
request which includes attesterId
After oauth and get access_token
,
access_token
in localStorage (ref: how to store id in userContext
)userContext.signup
)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.