pub fn new_for_verification_only(
        registry_client: Arc<dyn RegistryClient>,
    ) -> impl CryptoComponentForVerificationOnly {
        // We use a dummy node id since it is irrelevant for verification.
        let dummy_node_id = NodeId::new(PrincipalId::new_node_test_id(1));
        // Using the `TempCryptoComponent` with a temporary secret key file is fine
        // since the secret keys are never used for verification.
        TempCryptoComponent::new(registry_client, dummy_node_id)
    }
/// Creates a crypto component that only allows signature verification.
/// Verification does not require secret keys.
Creates a crypto component that only allows signature verification.
Verification does not require secret keys.
Creates a crypto component that only allows signature verification . Verification does not require secret keys .
pub fn new_for_verification_only(
        registry_client: Arc<dyn RegistryClient>,
    ) -> impl CryptoComponentForVerificationOnly {
        // We use a dummy node id since it is irrelevant for verification.
        let dummy_node_id = NodeId::new(PrincipalId::new_node_test_id(1));
        // Using the `TempCryptoComponent` with a temporary secret key file is fine
        // since the secret keys are never used for verification.
        TempCryptoComponent::new(registry_client, dummy_node_id)
    }
pub fn new_for_verification_only ( registry_client : Arc < dyn RegistryClient > , ) -> impl CryptoComponentForVerificationOnly { // We use a dummy node id since it is irrelevant for verification. let dummy_node_id = NodeId :: new ( PrincipalId :: new_node_test_id ( 1 ) ) ; // Using the `TempCryptoComponent` with a temporary secret key file is fine // since the secret keys are never used for verification. TempCryptoComponent :: new ( registry_client , dummy_node_id ) }
Creates a crypto component that only allows signature verification.
Creates a crypto component that only allows signature verification .
registry_client
Arc<dyn RegistryClient>
registry_client
Arc<dyn RegistryClient>