Browse Source

Change "cmz_gen_keys" to "cmz14_gen_keys" for consistency with the rest of the API

That function is used specifically for CMZ14.  mucmz_gen_keys generates
keys for µCMZ.
Ian Goldberg 4 months ago
parent
commit
3b272ee3f9
4 changed files with 4 additions and 4 deletions
  1. 1 1
      src/lib.rs
  2. 1 1
      tests/basic.rs
  3. 1 1
      tests/submodule.rs
  4. 1 1
      tests/wallet.rs

+ 1 - 1
src/lib.rs

@@ -335,7 +335,7 @@ where
     ) -> (CMZPrivkey<Self::Point>, CMZPubkey<Self::Point>);
 
     /// Convenience functions for the above
-    fn cmz_gen_keys(rng: &mut impl RngCore) -> (CMZPrivkey<Self::Point>, CMZPubkey<Self::Point>) {
+    fn cmz14_gen_keys(rng: &mut impl RngCore) -> (CMZPrivkey<Self::Point>, CMZPubkey<Self::Point>) {
         Self::gen_keys(rng, false)
     }
 

+ 1 - 1
tests/basic.rs

@@ -23,7 +23,7 @@ fn test_basic() {
         b"CMZ Generator A",
     ));
 
-    let (privkey, pubkey) = Basic::cmz_gen_keys(&mut rng);
+    let (privkey, pubkey) = Basic::cmz14_gen_keys(&mut rng);
 
     // Serialize and deserialize
     let privkey_bytes = bincode::serialize(&privkey).unwrap();

+ 1 - 1
tests/submodule.rs

@@ -34,7 +34,7 @@ pub mod submod {
             b"CMZ Generator A",
         ));
 
-        let (privkey, pubkey) = Basic::cmz_gen_keys(&mut rng);
+        let (privkey, pubkey) = Basic::cmz14_gen_keys(&mut rng);
 
         let mut basic_iss = Basic::using_pubkey(&pubkey);
 

+ 1 - 1
tests/wallet.rs

@@ -205,7 +205,7 @@ macro_rules! protos_def {
 }
 
 protos_def! {CMZ14Protocol, cmz14_wallet_issue, cmz14_item_issue, cmz14_wallet_spend,
-cmz14_wallet_spend_with_fee, cmz_gen_keys, test_cmz14_wallet}
+cmz14_wallet_spend_with_fee, cmz14_gen_keys, test_cmz14_wallet}
 
 protos_def! {muCMZProtocol, mu_wallet_issue, mu_item_issue,
 mu_wallet_spend, mu_wallet_spend_with_fee, mucmz_gen_keys, test_mucmz_wallet}