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

go/worker/keymanager/churp: Orchestrate handoffs #5640

Merged
merged 19 commits into from
Apr 19, 2024

Conversation

peternose
Copy link
Contributor

@peternose peternose commented Apr 16, 2024

No description provided.

Copy link

netlify bot commented Apr 16, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 7673734
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/6622523a82032d000914089f

@peternose peternose force-pushed the peternose/feature/handoffs branch 2 times, most recently from fcc9101 to be0b850 Compare April 17, 2024 01:06
go/keymanager/churp/rpc.go Outdated Show resolved Hide resolved
keymanager/src/churp/handler.rs Outdated Show resolved Hide resolved
go/keymanager/churp/policy.go Outdated Show resolved Hide resolved

/// Encoded secret share.
#[derive(Clone, Default, cbor::Encode, cbor::Decode)]
pub struct EncodedSecretShare {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably derive Zeroize with #[zeroize(drop)] as it contains secret data. Possibly elsewhere as well (e.g. SecretShare).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Working on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be done in another PR.

keymanager/src/churp/storage.rs Outdated Show resolved Hide resolved
keymanager/src/churp/storage.rs Show resolved Hide resolved
go/worker/keymanager/churp.go Outdated Show resolved Hide resolved
go/worker/keymanager/churp.go Show resolved Hide resolved
go/worker/keymanager/churp.go Outdated Show resolved Hide resolved
go/worker/keymanager/churp.go Outdated Show resolved Hide resolved
The enclave call will always fail with the error 'unknown peer id'
if the nodes to which the call should be directed are not part of
the committee. To prevent the call from being directed to a random
key manager node, an error should be returned instead.
Support storing the secret share of a player to prevent its loss during
restarts or failures.
Generalizes the initialization request so that it can also be used for
other requests with the same parameters.
@peternose peternose merged commit daf7ca2 into master Apr 19, 2024
3 of 5 checks passed
@peternose peternose deleted the peternose/feature/handoffs branch April 19, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants