File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 6262//! // let mut key_generator = SoftwareKeyGen::new();
6363//! // let mut rng = YourCryptoRng::new();
6464//! // let (private_key, public_key) = key_generator.generate_keypair(&mut rng)?;
65- //!
65+ //!
6666//! // Software keys can be serialized:
6767//! // let private_bytes = private_key.as_bytes(); // SerializablePrivateKey
6868//! // let public_bytes = public_key.as_bytes(); // SerializablePublicKey
69- //!
69+ //!
7070//! // HARDWARE KEYS (no serialization):
7171//! // let mut hsm_generator = HsmKeyGen::new();
7272//! // let (hsm_private, hsm_public) = hsm_generator.generate_keypair(&mut rng)?;
73- //!
73+ //!
7474//! // Hardware keys cannot be serialized (no IntoBytes/FromBytes bounds)
7575//! // but can still be used for cryptographic operations:
7676//! // hsm_private.validate()?; // PrivateKey trait method
77- //!
77+ //!
7878//! // Both key types work the same for crypto operations:
7979//! // let mut signer = YourSignerImpl::new();
8080//! // let message_digest = your_hash_function(message);
@@ -439,7 +439,6 @@ pub trait Signature<C: Curve> {
439439 where
440440 Self : Sized ;
441441
442-
443442 /// Write coordinates to output buffers (zero-allocation for embedded).
444443 ///
445444 /// This method provides zero-allocation coordinate access for embedded
You can’t perform that action at this time.
0 commit comments