Skip to content
3 changes: 3 additions & 0 deletions packages/rs-dpp/src/identity/identity_public_key/key_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ pub enum KeyType {
BLS12_381 = 1,
ECDSA_HASH160 = 2,
BIP13_SCRIPT_HASH = 3,
// TODO: re-enable this keys
// EDDSA_25519 = 4,
// EDDSA_25519_HASH160 = 5,
}

lazy_static! {
Expand Down
3 changes: 3 additions & 0 deletions packages/rs-dpp/src/identity/identity_public_key/purpose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pub enum Purpose {
DECRYPTION = 2,
/// this key cannot be used for signing documents
WITHDRAW = 3,
// TODO: re-enable this
// /// this key cannot be used for signing documents
// SYSTEM = 4
}

impl TryFrom<u8> for Purpose {
Expand Down
1 change: 1 addition & 0 deletions packages/rs-drive-abci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tempfile = "3.3.0"
bs58 = "0.4.0"
base64 = "0.13.0"
hex = "0.4.3"
sha2 = "0.10.6"
dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [
"std",
"secp-recovery",
Expand Down
31 changes: 16 additions & 15 deletions packages/rs-drive-abci/src/execution/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,19 @@ where
Ok((aggregate_fee_result, exec_tx_results))
}

/// Update of the masternode identities
pub fn update_masternode_identities(
&self,
previous_core_height: u32,
current_core_height: u32,
) -> Result<(), Error> {
if previous_core_height != current_core_height {
//todo:
// self.drive.fetch_full_identity()
// self.drive.add_new_non_unique_keys_to_identity()
}
Ok(())
}
// /// Update of the masternode identities
// pub fn update_masternode_identities(
// &self,
// previous_core_height: u32,
// current_core_height: u32,
// ) -> Result<(), Error> {
// if previous_core_height != current_core_height {
// //todo:
// // self.drive.fetch_full_identity()
// // self.drive.add_new_non_unique_keys_to_identity()
// }
// Ok(())
// }

/// Run a block proposal, either from process proposal, or prepare proposal
/// Errors returned in the validation result are consensus errors, any error here means that
Expand Down Expand Up @@ -329,7 +329,7 @@ where
transaction,
)?;

self.update_masternode_identities(last_block_core_height, core_chain_locked_height)?;
// self.update_masternode_identities(last_block_core_height, core_chain_locked_height)?;

let root_hash = self
.drive
Expand Down Expand Up @@ -361,7 +361,8 @@ where

self.update_quorum_info(&mut state_cache, block_info.core_height)?;

//self.update_masternode_list(&mut state_cache, block_info.core_height, transaction)?;
// TODO: re-enable
// self.update_masternode_list(&mut state_cache, block_info.core_height, transaction)?;

state_cache.last_committed_block_info = Some(block_info.clone());

Expand Down
4 changes: 4 additions & 0 deletions packages/rs-drive-abci/src/execution/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ where
return Ok(());
}

/*
// TODO: re-enable

/// Updates the masternode list in the platform state based on changes in the masternode list
/// from Dash Core between two block heights.
///
Expand Down Expand Up @@ -177,4 +180,5 @@ where

Ok(())
}
*/
}
Loading