Skip to content
New issue

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

Handle multiple master public keys in a single transaction context #965

Closed
spalladino opened this issue Jul 4, 2023 · 1 comment
Closed

Comments

@spalladino
Copy link
Collaborator

We want to be able to get decryption keys or nullifier secrets for any address within the execution of a tx, not just msg.sender or the tx originator. Use case being having a public key shared among a group of people, and we want to read/modify that shared state in a tx, along with some state that belongs only to us.

Example:

// group is an address constructed from a shared public key

contract Lottery {
    function paywinner(group: Address) {
        require(msg.sender in [member1, member2...]);
        let prize = get_note_for(group);
        // consume and pay prize...
    }
}
@spalladino
Copy link
Collaborator Author

Fixed in #1110

@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants