-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alex/rm-csp-gen-fns' into 'master'
refactor(crypto): CRP-2499 remove key generation CSP APIs This MR is a step towards removing the crypto service provider. The removed APIs are: ``` CspIDkgProtocol::idkg_gen_dealing_encryption_key_pair CspKeyGenerator::{gen_node_signing_key_pair, gen_committee_signing_key_pair, gen_tls_key_pair} NiDkgCspClient::gen_dealing_encryption_key_pair ``` See merge request dfinity-lab/public/ic!19253
- Loading branch information
Showing
26 changed files
with
253 additions
and
397 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
rs/crypto/internal/crypto_service_provider/src/api/canister_threshold.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,2 @@ | ||
//! CSP canister threshold signature traits | ||
use ic_crypto_internal_threshold_sig_ecdsa::MEGaPublicKey; | ||
|
||
pub mod errors; | ||
pub use errors::*; | ||
|
||
/// Crypto service provider (CSP) client for interactive distributed key | ||
/// generation (IDkg) for canister threshold signatures. | ||
pub trait CspIDkgProtocol { | ||
/// Generate a MEGa public/private key pair for encrypting threshold key shares in transmission | ||
/// from dealers to receivers. The generated public key will be stored in the node's public key store | ||
/// while the private key will be stored in the node's secret key store. | ||
/// | ||
/// # Returns | ||
/// Generated public key. | ||
/// | ||
/// # Errors | ||
/// * [`CspCreateMEGaKeyError::SerializationError`] if serialization of public or private key | ||
/// before storing it in their respective key store failed. | ||
/// * [`CspCreateMEGaKeyError::TransientInternalError`] if there is a | ||
/// transient internal error, e.g,. an IO error when writing a key to | ||
/// disk, or an RPC error when calling a remote CSP vault. | ||
/// * [`CspCreateMEGaKeyError::DuplicateKeyId`] if there already | ||
/// exists a secret key in the store for the secret key ID derived from | ||
/// the public part of the randomly generated key pair. This error | ||
/// most likely indicates a bad randomness source. | ||
/// * [`CspCreateMEGaKeyError::InternalError`]: if the key ID for the secret key cannot be | ||
/// derived from the generated public key. | ||
fn idkg_gen_dealing_encryption_key_pair(&self) -> Result<MEGaPublicKey, CspCreateMEGaKeyError>; | ||
} |
67 changes: 1 addition & 66 deletions
67
rs/crypto/internal/crypto_service_provider/src/api/keygen.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
rs/crypto/internal/crypto_service_provider/src/keygen/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.