Decryption & Re-encryption

Encrypted values stored on-chain can be viewed in two ways, either via a global decryption or a re-encryption, depending on the requirement:

Global Decryption

Global decryption is particularly useful when an encrypted value needs to be decrypted and revealed on-chain to the entire network. This function can be applied in scenarios like revealing a player's card at the conclusion of a game for settlement purposes or disclosing the final tally results of a private voting proposal, ensuring transparency and fairness once the confidential phase has ended

Detailed guide:

Global Decryption

Re-encryption

Re-encryption enables authorized users to discreetly access an encrypted value without exposing the underlying plaintext to the entire network. This mechanism is useful in scenarios such as allowing a player to privately view their own cards or query their personal balance. Access control is explicitly managed on-chain through the ACL (Access Control List) contract, ensuring that only designated users can decrypt the information.

Detailed guide:

Re-encryption

Last updated