Unirep: a private and non-repudiable reputation system with Ya-wen (Vivian) Jeng

ETH Seoul 2022 · August 2022 · 22:02

Ya-wen (Vivian) Jeng of the Privacy and Scaling Explorations team at the Ethereum Foundation presents Unirep, a private and non-repudiable reputation system. Using an Airbnb and booking.com example, the talk shows how attesters can issue reputation to anonymous users, who can later prove how much reputation they hold without revealing their identity. It walks through the protocol, including Semaphore identities, epoch keys, hash chains, user state transitions and zero-knowledge proofs, and shows Unirep Social, an anonymous social media app.

Speakers

Topics

From ETH Seoul 2022, hosted by Kryptoplanet.

Transcript

which is which means universe reputation and yeah why we use unirac because we are nowadays we have a lot of applications there uh their own reputation system for example we have followers in a subscriber in youtube or airbnb and booking.com reputation and also we have comma in reddit but how can we integrate them together in one reputation system so uni rep is introduced here and first

now i took an example if an alice is an airbnb user and he wants to she wants to prove to uh bookings account landlord that she has enough reputation to um live she has enough reputation in the airbnb but the landlord of boozingbooking.com doesn't believe she has enough reputation and now how can alice uh prove to the landlord in booking.com the easiest way is that ls can take a screenshot of the uh

history of his airbnb uh history but now the uh alice's privacy will be compromised and it's really easy to forge and so that the landlord of booking.com are is hardly to be convinced but now uni rep can solve this problem uni rep is a private and non-reputable reputation system so user can give others reputation and also he can option voluntarily prove how much reputation he or she has

and also users cannot refuse to receive bad reputation and i will introduce the protocol behind the universe so there are two actors in unira the first one is the attackers who who will not be anonymous in this system like airbnb or booking.com it it represents users to give reputation like it like they each they can issue reputation token and the users which which means the uh alice or

or a landlord in booking.com and they are anonymous and they can receive reputation and also proof of reputation so others will will never know that um who is who receives this this reputation yeah so it can achieve privacy and in this system we defined in epaki to receive reputation and also we defined and a period of time called epoch for example seven days and then

uh each in each airpod user can have k apart keys to receive reputation and the applique is like and hash so it will leak it is hardly to link to an identity which is like alice here and in this system when user signs up and we use the identity system called semaphore and similar form consists of a private identity and a public identity commitment so the user used the public identity commitment to sign up in a unirep

smart contract here and uh there's a global state tree is computed and it's completed by hash of identity commitment and the user state tree root so we will introduce what is useless day trade route in this vertical user state tree root is how much reputation a user has in the unira protocol so the index of the tree is the a tester id and the um the leaf value is hash of all the reputation

data for example the positive reputation negative reputation and gravity and also a sign of rack for example is if a user has signed up in airbnb and he will get a set of flag here so the tree is uh street lift is the hash of the reputation and the global stage tree is we said before is the hash of id gum commitment and the user's day tree route and when user signs up and he will it will

insert a leaf in the global state tree in this protocol and also a user state transition will cause a new leaf inserted in and we will introduce the user state transition later and also we introduced how the tester can sign up in this protocol so the now the a tester is non anonymous so the a tester can use the ethereum wallet or a smart contract to sign up in the unirep

contract and the uni right control will assign and a tester id to the attacher like if the airbnb is the first tester to sign up in the universe protocol and it will get a tester id one yeah so it is the overview of the site up in the universe protocol the user used the ident id commitment to sign up and the tester used its eastern wallet address or smart control address and we we said before user use the apoc key to receive reputation

and the apache is hash of identity and epoch and nouns and the nouns is zero to k k binders one to let user have k apar keys in this protocol and how can we make sure that the user the user is the owner of the apoc key and how can we make sure the user uh doesn't doesn't compute the apar key of uh it is not a random number of the epoch key so we use the zero knowledge proof to let user convince others that the apache is computed

correctly yeah so it is what in the in the zero knowledge proof circuit so we take the epoch and the identity and announce here and check if the id has the user state reroute is together with the merkle tree proof to see if the global statutory route is a matches the matrices the protocol and also we check if the apa key is computed by the id hash of id and epoch and now

and the red red words here is the private information and the green words here is the public information yeah so the other user can check that the other user only knows the proof output apar key and global state tree root and the valid empire yeah so when user generates epa key and apache proof and others verifies it is valid and then the attacker can send the reputation to this epa key

through the unirap smart contract and now we if we want to make sure that the reputation it cannot be ignored by any other every user so we use the hash chain to prevent the prevent users to do this so we hash the reputation together with the attester id positive rotation negative reputation gravity and set off leg and each epoch has its

it has chain so when whenever the epa key receives a reputation and the hash trend will be computed so if the if the user ignore any reputation here the hashtag resolve will be totally different yeah so now if the alice received the five repetition from airbnb and three negative reputation from twitter but now uh remember of the alice user state tree hasn't been updated now so

in this protocol we use a epoch transition and uses the transition to let alice proves that he owns this epa key and process this reputation and and receive this reputation yeah so the in the apart transition the hash chain of the faq will be sealed to let to make sure the apache cannot receive the receive the reputation anymore yeah so and then and then the apart tree

will be computed and the index of it is the apache and the value of it is the sealed hash chain and list3 is also used to prevent users ignore any reputation yeah so how can user receive the reputation for example the user wants to transit the user will perform the usage transition fund upon into epoch m and then this is what she will do the

first one is that he will prove that he has signed up or he has performed the user stay transition in epoch and and process all the attestation and final it will compute a new global stage 3 leaf in epoch m and this is how the user stay tree updated like for example in a initial user stage it will be empty and if a reputation comes and we update the the third the fourth

the fourth leaf and it is index three and leaf will be hash of the positive reputation and negative reputation and rest of it and also compute the hash chain and the second reputation comes and we update the uh but we update the user stage tree according to the tester id and also compute another hash chain yeah so after we process all the reputations we will have

a hashtag of all apa keys and uses the updated users they tree root and then in the circuit we will use the identity and epoch and we iterate all the nouns all the possible nouns and to collect to calculate all the apaches the user has in the current airport and then we use the apache to compute the apathy rule like we uh we check the the apa key

and the sealed hash chain in its leaf and then to check all the apache and sealed epic hash chain match the same epa key route apache route yeah and then remember that we have update updated user state tree route and then we will compute the new global state tree leaf with hash of identity and the updated user's data route and we also compute a nullifiers called

epaki nullifiers and it is used to prevent users from double performing double user state transition yeah so the uh so that if the user generate the user state transition zkp proof and submit submit it to the unirep smart contract and everyone in this protocol can verify if the proof is correct and then if they are correct then update the gold ball state tree yeah then after user received this reputation

and he can voluntarily really prove how much reputation he has for example we can prove the reputation is bigger than the the minimum reputation we set here for example if alice have 100 positive reputation then he can choose to to prove i only have 10 here and also the pre-image of gravity and the gravity can be said of any any string yeah so it is it will make the uh reputation system more up um you can have more options to

prove things in the reputation system and also user can prove that if if the user has signed up in the tester's application and the idea to prove the reputation here is that we can compute the user stage relief by hash of the reputation and also check the user state tree root and hash of identity is one of the global state relief we can see in this this picture the left side left hand side is the user state tree root

and it is its leaf is hash of the older reputation from one a tester and the right hand side is the public global state tree and the user sleep would be one of the leaf in the global state tree yeah so here's the overview of unirep protocol the user with the public identity commitment will sign up in the unirep system and the tasker can set up with its ethereum wallet or smart contract

address and then user generates an epa key and apache proof and submit it to unirep contract and then the attacker will give reputation to this epoch key then it will perf on every certain epi lens the apa transition will be performed and the epi will increase by one and all the apaches will be sealed and and apart three will be computed then use how user receives reputation is that

user will generate a user state transition proof according to all the apa key he or she has and process all the reputation then the user will according to the reputation he has to update the user's day tree and then check the apache rules if they match the same one and then others see these users stay transition proof and verify it is

valid and then update the whole unirep state and if user has one of the live in global state tree and he can prove that how much reputation he or she has in the in the universe protocol and use a reputation proof to convince others and there is one of the example of unira particle we build a social media called unirep social

and it is a decentralized and anonymous social media so user can pop can publish a post and comment others and also upload and download comments and user in the post can optionally reveal how much reputation he or she has and instead of user has a real name or account it will reveals only the the epic key and it just looks like a hash of it

so it can prove we can preserve you the post the author's privacy yeah and we build this system with we build the anonymous social media is with a reputation assistant is to force users to take responsible for what or what what they say in the decentralized social media yeah and this is one of the example of univariate protocol and more more applications that with reputation

requirement can be art it's also welcome to build upon the unira protocol and here's our our github and documentation yeah i'm also welcome to join our discord to discuss this protocol with us thank you