123456789101112131415161718192021 |
- #ifndef __PRSONA_CLIENT_HPP
- #define __PRSONA_CLIENT_HPP
- class PrsonaClient {
- public:
- PrsonaClient();
- void receive_score(Ciphertext score, Proof pi, Scalar newSeed);
- void make_vote(vector<Scalar> vote);
- void use_reputation();
- bool verify_reputation_proof(Proof pi, PrsonaPublicKey shortTermPublicKey);
- private:
- PrsonaPrivateKey longTermPrivateKey;
- BGNPublicKey serverPublicKey;
- Scalar currentFreshPseudonymSeed;
- Proof generate_vote_proof(Scalar vote);
- Proof generate_usage_proof();
- };
- #endif
|