Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Oct 6, 2024
1 parent 396ab83 commit 534d8e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 0 additions & 2 deletions dash-spv-masternode-processor/src/blockdata/opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#[cfg(feature = "serde")] use serde;

//#[cfg(feature = "serde")] use std::prelude::*;

use core::{fmt, convert::From};

// Note: I am deliberately not implementing PartialOrd or Ord on the
Expand Down
6 changes: 0 additions & 6 deletions dash-spv-masternode-processor/src/tests/keys/aes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ fn test_ecdsa_encryption_and_decryption() {
assert_eq!(secret, decrypted_str.as_str(), "they should be the same string");
}

#[test]
fn bls_pub() {
println!("Key: legacy {}", BLSKey::key_with_private_key("46891c2cec49593c81921e473db7480029e0fc1eb933c6b93d81f5370eb19fbd", true).unwrap().public_key_uint());
println!("Key: basic {}", BLSKey::key_with_private_key("46891c2cec49593c81921e473db7480029e0fc1eb933c6b93d81f5370eb19fbd", false).unwrap().public_key_uint());
}

#[test]
fn test_bls_encryption_and_decryption() {
let base64_engine = GeneralPurpose::new(&alphabet::STANDARD, GeneralPurposeConfig::default());
Expand Down
13 changes: 2 additions & 11 deletions dash-spv-masternode-processor/src/tests/keys/bls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ fn test_bls_multiplication() {
assert_eq!(result_serialize, expected_data);
}

#[test]
fn bls_pub() {
let bls_b = BLSKey::key_with_private_key("46891c2cec49593c81921e473db7480029e0fc1eb933c6b93d81f5370eb19fbd", true).unwrap();
println!("key: privkey_raw {:?}", bls_b.seckey.0);
println!("key: pubkey_raw {:?}", bls_b.pubkey.0);
println!("Key: legacy {}", BLSKey::key_with_private_key("46891c2cec49593c81921e473db7480029e0fc1eb933c6b93d81f5370eb19fbd", true).unwrap().public_key_uint());
println!("Key: basic {}", BLSKey::key_with_private_key("46891c2cec49593c81921e473db7480029e0fc1eb933c6b93d81f5370eb19fbd", false).unwrap().public_key_uint());
}

#[test]
fn test_bls_from_bip32_short_seed() {
let private_key = PrivateKey::from_bip32_seed(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
Expand Down Expand Up @@ -192,8 +183,8 @@ fn test_bls_verify_random_signature_using_scheme<S: Scheme>(schema: S) {

#[test]
fn test_bls_basic_signature_verify_secure_aggregated() {
//test_bls_verify_random_signature_using_scheme(LegacySchemeMPL::new());
//test_bls_verify_random_signature_using_scheme(BasicSchemeMPL::new());
test_bls_verify_random_signature_using_scheme(LegacySchemeMPL::new());
test_bls_verify_random_signature_using_scheme(BasicSchemeMPL::new());
}

#[test]
Expand Down

0 comments on commit 534d8e2

Please sign in to comment.