@dashevo/wasm-dpp 2.1.3 → 3.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +2 -2
- package/dist/errors/patchConsensusErrors.js +3 -3
- package/dist/wasm/wasm_dpp.d.ts +2209 -1939
- package/dist/wasm/wasm_dpp.js +1505 -1361
- package/dist/wasm/wasm_dpp_bg.js +1 -1
- package/lib/errors/patchConsensusErrors.ts +3 -3
- package/lib/wasm/wasm_dpp.d.ts +2209 -1939
- package/package.json +2 -2
- package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +5 -3
- package/src/data_contract/state_transition/data_contract_update_transition/mod.rs +5 -3
- package/src/document/state_transition/batch_transition/mod.rs +3 -3
- package/src/errors/consensus/basic/identity/invalid_credit_withdrawal_transition_core_fee_error.rs +36 -0
- package/src/errors/consensus/basic/identity/invalid_credit_withdrawal_transition_output_script_error.rs +31 -0
- package/src/errors/consensus/basic/identity/mod.rs +6 -6
- package/src/errors/consensus/basic/identity/not_implemented_credit_withdrawal_transition_pooling_error.rs +36 -0
- package/src/errors/consensus/consensus_error.rs +91 -18
- package/src/errors/consensus/signature/mod.rs +2 -0
- package/src/errors/consensus/signature/uncompressed_public_key_not_allowed_error.rs +34 -0
- package/src/identity/state_transition/identity_create_transition/to_object.rs +1 -0
- package/src/identity/state_transition/identity_create_transition/transition.rs +4 -3
- package/src/identity/state_transition/identity_credit_transfer_transition/to_object.rs +1 -1
- package/src/identity/state_transition/identity_credit_transfer_transition/transition.rs +4 -3
- package/src/identity/state_transition/identity_credit_withdrawal_transition/to_object.rs +1 -1
- package/src/identity/state_transition/identity_credit_withdrawal_transition/transition.rs +4 -3
- package/src/identity/state_transition/identity_topup_transition/to_object.rs +1 -0
- package/src/identity/state_transition/identity_topup_transition/transition.rs +3 -2
- package/src/identity/state_transition/identity_update_transition/to_object.rs +1 -1
- package/src/identity/state_transition/identity_update_transition/transition.rs +6 -5
- package/src/identity/state_transition/transition_types.rs +24 -0
- package/src/state_transition/state_transition_factory.rs +18 -0
- package/src/voting/state_transition/masternode_vote_transition/mod.rs +7 -3
- package/src/voting/state_transition/masternode_vote_transition/to_object.rs +1 -1
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_core_fee_error.rs +0 -36
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_output_script_error.rs +0 -31
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_pooling_error.rs +0 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/wasm-dpp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-dev.5",
|
|
4
4
|
"description": "The JavaScript implementation of the Dash Platform Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/core": "^7.26.10",
|
|
45
45
|
"@babel/preset-env": "^7.26.9",
|
|
46
46
|
"@dashevo/dashcore-lib": "~0.22.0",
|
|
47
|
-
"@dashevo/dpns-contract": "
|
|
47
|
+
"@dashevo/dpns-contract": "3.0.0-dev.5",
|
|
48
48
|
"@types/bs58": "^4.0.1",
|
|
49
49
|
"@types/node": "^14.6.0",
|
|
50
50
|
"@yarnpkg/pnpify": "^4.0.0-rc.42",
|
|
@@ -10,7 +10,9 @@ use dpp::errors::consensus::ConsensusError;
|
|
|
10
10
|
use dpp::serialization::{PlatformDeserializable, PlatformSerializable};
|
|
11
11
|
use dpp::state_transition::data_contract_create_transition::accessors::DataContractCreateTransitionAccessorsV0;
|
|
12
12
|
use dpp::state_transition::data_contract_create_transition::DataContractCreateTransition;
|
|
13
|
-
use dpp::state_transition::
|
|
13
|
+
use dpp::state_transition::{
|
|
14
|
+
StateTransitionIdentitySigned, StateTransitionOwned, StateTransitionSingleSigned,
|
|
15
|
+
};
|
|
14
16
|
|
|
15
17
|
use dpp::state_transition::{StateTransition, StateTransitionValueConvert};
|
|
16
18
|
use dpp::version::PlatformVersion;
|
|
@@ -212,7 +214,7 @@ impl DataContractCreateTransitionWasm {
|
|
|
212
214
|
)
|
|
213
215
|
.with_js_error()?;
|
|
214
216
|
|
|
215
|
-
let signature = state_transition.signature().to_owned();
|
|
217
|
+
let signature = state_transition.signature().unwrap().to_owned();
|
|
216
218
|
let signature_public_key_id = state_transition.signature_public_key_id().unwrap_or(0);
|
|
217
219
|
|
|
218
220
|
self.0.set_signature(signature);
|
|
@@ -230,7 +232,7 @@ impl DataContractCreateTransitionWasm {
|
|
|
230
232
|
let bls_adapter = BlsAdapter(bls);
|
|
231
233
|
|
|
232
234
|
let verification_result = StateTransition::DataContractCreate(self.0.clone())
|
|
233
|
-
.
|
|
235
|
+
.verify_identity_signed_signature(&identity_public_key.to_owned().into(), &bls_adapter);
|
|
234
236
|
|
|
235
237
|
match verification_result {
|
|
236
238
|
Ok(()) => Ok(true),
|
|
@@ -6,8 +6,10 @@ use dpp::consensus::ConsensusError;
|
|
|
6
6
|
use dpp::serialization::{PlatformDeserializable, PlatformSerializable};
|
|
7
7
|
use dpp::state_transition::data_contract_update_transition::accessors::DataContractUpdateTransitionAccessorsV0;
|
|
8
8
|
use dpp::state_transition::data_contract_update_transition::DataContractUpdateTransition;
|
|
9
|
-
use dpp::state_transition::StateTransitionIdentitySigned;
|
|
10
9
|
use dpp::state_transition::{StateTransition, StateTransitionValueConvert};
|
|
10
|
+
use dpp::state_transition::{
|
|
11
|
+
StateTransitionIdentitySigned, StateTransitionOwned, StateTransitionSingleSigned,
|
|
12
|
+
};
|
|
11
13
|
use dpp::version::PlatformVersion;
|
|
12
14
|
use dpp::{
|
|
13
15
|
consensus::signature::SignatureError, state_transition::StateTransitionLike, ProtocolError,
|
|
@@ -216,7 +218,7 @@ impl DataContractUpdateTransitionWasm {
|
|
|
216
218
|
)
|
|
217
219
|
.with_js_error()?;
|
|
218
220
|
|
|
219
|
-
let signature = state_transition.signature().to_owned();
|
|
221
|
+
let signature = state_transition.signature().unwrap().to_owned();
|
|
220
222
|
let signature_public_key_id = state_transition.signature_public_key_id().unwrap_or(0);
|
|
221
223
|
|
|
222
224
|
self.0.set_signature(signature);
|
|
@@ -234,7 +236,7 @@ impl DataContractUpdateTransitionWasm {
|
|
|
234
236
|
let bls_adapter = BlsAdapter(bls);
|
|
235
237
|
|
|
236
238
|
let verification_result = StateTransition::DataContractUpdate(self.0.clone())
|
|
237
|
-
.
|
|
239
|
+
.verify_identity_signed_signature(&identity_public_key.to_owned().into(), &bls_adapter);
|
|
238
240
|
|
|
239
241
|
match verification_result {
|
|
240
242
|
Ok(()) => Ok(true),
|
|
@@ -14,7 +14,7 @@ use dpp::platform_value::BinaryData;
|
|
|
14
14
|
use dpp::serialization::PlatformSerializable;
|
|
15
15
|
use dpp::state_transition::batch_transition::accessors::DocumentsBatchTransitionAccessorsV0;
|
|
16
16
|
use dpp::state_transition::batch_transition::BatchTransition;
|
|
17
|
-
use dpp::state_transition::StateTransition;
|
|
17
|
+
use dpp::state_transition::{StateTransition, StateTransitionOwned, StateTransitionSingleSigned};
|
|
18
18
|
use wasm_bindgen::prelude::*;
|
|
19
19
|
|
|
20
20
|
use crate::{
|
|
@@ -301,7 +301,7 @@ impl BatchTransitionWasm {
|
|
|
301
301
|
)
|
|
302
302
|
.with_js_error()?;
|
|
303
303
|
|
|
304
|
-
let signature = state_transition.signature().to_owned();
|
|
304
|
+
let signature = state_transition.signature().unwrap().to_owned();
|
|
305
305
|
let signature_public_key_id = state_transition.signature_public_key_id().unwrap_or(0);
|
|
306
306
|
|
|
307
307
|
self.0.set_signature(signature);
|
|
@@ -339,7 +339,7 @@ impl BatchTransitionWasm {
|
|
|
339
339
|
let bls_adapter = BlsAdapter(bls);
|
|
340
340
|
|
|
341
341
|
let verification_result = StateTransition::Batch(self.0.clone())
|
|
342
|
-
.
|
|
342
|
+
.verify_identity_signed_signature(&identity_public_key.to_owned().into(), &bls_adapter);
|
|
343
343
|
|
|
344
344
|
match verification_result {
|
|
345
345
|
Ok(()) => Ok(true),
|
package/src/errors/consensus/basic/identity/invalid_credit_withdrawal_transition_core_fee_error.rs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
use dpp::consensus::basic::identity::InvalidCreditWithdrawalTransitionCoreFeeError;
|
|
2
|
+
use dpp::consensus::codes::ErrorWithCode;
|
|
3
|
+
use dpp::consensus::ConsensusError;
|
|
4
|
+
|
|
5
|
+
use wasm_bindgen::prelude::*;
|
|
6
|
+
|
|
7
|
+
#[wasm_bindgen(js_name=InvalidCreditWithdrawalTransitionCoreFeeError)]
|
|
8
|
+
pub struct InvalidCreditWithdrawalTransitionCoreFeeErrorWasm {
|
|
9
|
+
inner: InvalidCreditWithdrawalTransitionCoreFeeError,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
impl From<&InvalidCreditWithdrawalTransitionCoreFeeError>
|
|
13
|
+
for InvalidCreditWithdrawalTransitionCoreFeeErrorWasm
|
|
14
|
+
{
|
|
15
|
+
fn from(e: &InvalidCreditWithdrawalTransitionCoreFeeError) -> Self {
|
|
16
|
+
Self { inner: e.clone() }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#[wasm_bindgen(js_class=InvalidCreditWithdrawalTransitionCoreFeeError)]
|
|
21
|
+
impl InvalidCreditWithdrawalTransitionCoreFeeErrorWasm {
|
|
22
|
+
#[wasm_bindgen(js_name=getCoreFee)]
|
|
23
|
+
pub fn core_fee_per_byte(&self) -> u32 {
|
|
24
|
+
self.inner.core_fee_per_byte()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#[wasm_bindgen(js_name=getCode)]
|
|
28
|
+
pub fn get_code(&self) -> u32 {
|
|
29
|
+
ConsensusError::from(self.inner.clone()).code()
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#[wasm_bindgen(getter)]
|
|
33
|
+
pub fn message(&self) -> String {
|
|
34
|
+
self.inner.to_string()
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
use dpp::consensus::basic::identity::InvalidCreditWithdrawalTransitionOutputScriptError;
|
|
2
|
+
use dpp::consensus::codes::ErrorWithCode;
|
|
3
|
+
use dpp::consensus::ConsensusError;
|
|
4
|
+
|
|
5
|
+
use wasm_bindgen::prelude::*;
|
|
6
|
+
|
|
7
|
+
#[wasm_bindgen(js_name=InvalidCreditWithdrawalTransitionOutputScriptError)]
|
|
8
|
+
pub struct InvalidCreditWithdrawalTransitionOutputScriptErrorWasm {
|
|
9
|
+
inner: InvalidCreditWithdrawalTransitionOutputScriptError,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
impl From<&InvalidCreditWithdrawalTransitionOutputScriptError>
|
|
13
|
+
for InvalidCreditWithdrawalTransitionOutputScriptErrorWasm
|
|
14
|
+
{
|
|
15
|
+
fn from(e: &InvalidCreditWithdrawalTransitionOutputScriptError) -> Self {
|
|
16
|
+
Self { inner: e.clone() }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#[wasm_bindgen(js_class=InvalidCreditWithdrawalTransitionOutputScriptError)]
|
|
21
|
+
impl InvalidCreditWithdrawalTransitionOutputScriptErrorWasm {
|
|
22
|
+
#[wasm_bindgen(js_name=getCode)]
|
|
23
|
+
pub fn code(&self) -> u32 {
|
|
24
|
+
ConsensusError::from(self.inner.clone()).code()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#[wasm_bindgen(getter)]
|
|
28
|
+
pub fn message(&self) -> String {
|
|
29
|
+
self.inner.to_string()
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -11,13 +11,12 @@ mod invalid_asset_lock_proof_core_chain_height_error;
|
|
|
11
11
|
mod invalid_asset_lock_proof_transaction_height_error;
|
|
12
12
|
mod invalid_asset_lock_transaction_output_return_size_error;
|
|
13
13
|
mod invalid_asset_transaction_out_point_not_enough_balance_error;
|
|
14
|
+
mod invalid_credit_withdrawal_transition_core_fee_error;
|
|
15
|
+
mod invalid_credit_withdrawal_transition_output_script_error;
|
|
14
16
|
mod invalid_identity_asset_lock_proof_chain_lock_validation_error;
|
|
15
17
|
mod invalid_identity_asset_lock_transaction_error;
|
|
16
18
|
mod invalid_identity_asset_lock_transaction_output_error;
|
|
17
19
|
mod invalid_identity_credit_transfer_amount_error;
|
|
18
|
-
mod invalid_identity_credit_withdrawal_transition_core_fee_error;
|
|
19
|
-
mod invalid_identity_credit_withdrawal_transition_output_script_error;
|
|
20
|
-
mod invalid_identity_credit_withdrawal_transition_pooling_error;
|
|
21
20
|
pub mod invalid_identity_key_signature_error;
|
|
22
21
|
mod invalid_identity_public_key_data_error;
|
|
23
22
|
mod invalid_identity_public_key_security_level_error;
|
|
@@ -26,6 +25,7 @@ mod invalid_instant_asset_lock_proof_error;
|
|
|
26
25
|
mod invalid_instant_asset_lock_proof_signature_error;
|
|
27
26
|
mod missing_master_public_key_error;
|
|
28
27
|
mod missing_public_key_error;
|
|
28
|
+
mod not_implemented_credit_withdrawal_transition_pooling_error;
|
|
29
29
|
|
|
30
30
|
pub use duplicated_identity_public_key_error::*;
|
|
31
31
|
pub use duplicated_identity_public_key_id_error::*;
|
|
@@ -40,13 +40,12 @@ pub use invalid_asset_lock_proof_core_chain_height_error::*;
|
|
|
40
40
|
pub use invalid_asset_lock_proof_transaction_height_error::*;
|
|
41
41
|
pub use invalid_asset_lock_transaction_output_return_size_error::*;
|
|
42
42
|
pub use invalid_asset_transaction_out_point_not_enough_balance_error::*;
|
|
43
|
+
pub use invalid_credit_withdrawal_transition_core_fee_error::*;
|
|
44
|
+
pub use invalid_credit_withdrawal_transition_output_script_error::*;
|
|
43
45
|
pub use invalid_identity_asset_lock_proof_chain_lock_validation_error::*;
|
|
44
46
|
pub use invalid_identity_asset_lock_transaction_error::*;
|
|
45
47
|
pub use invalid_identity_asset_lock_transaction_output_error::*;
|
|
46
48
|
pub use invalid_identity_credit_transfer_amount_error::*;
|
|
47
|
-
pub use invalid_identity_credit_withdrawal_transition_core_fee_error::*;
|
|
48
|
-
pub use invalid_identity_credit_withdrawal_transition_output_script_error::*;
|
|
49
|
-
pub use invalid_identity_credit_withdrawal_transition_pooling_error::*;
|
|
50
49
|
pub use invalid_identity_key_signature_error::*;
|
|
51
50
|
pub use invalid_identity_public_key_data_error::*;
|
|
52
51
|
pub use invalid_identity_public_key_security_level_error::*;
|
|
@@ -55,3 +54,4 @@ pub use invalid_instant_asset_lock_proof_error::*;
|
|
|
55
54
|
pub use invalid_instant_asset_lock_proof_signature_error::*;
|
|
56
55
|
pub use missing_master_public_key_error::*;
|
|
57
56
|
pub use missing_public_key_error::*;
|
|
57
|
+
pub use not_implemented_credit_withdrawal_transition_pooling_error::*;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
use dpp::consensus::basic::identity::NotImplementedCreditWithdrawalTransitionPoolingError;
|
|
2
|
+
use dpp::consensus::codes::ErrorWithCode;
|
|
3
|
+
use dpp::consensus::ConsensusError;
|
|
4
|
+
|
|
5
|
+
use wasm_bindgen::prelude::*;
|
|
6
|
+
|
|
7
|
+
#[wasm_bindgen(js_name=NotImplementedCreditWithdrawalTransitionPoolingError)]
|
|
8
|
+
pub struct NotImplementedCreditWithdrawalTransitionPoolingErrorWasm {
|
|
9
|
+
inner: NotImplementedCreditWithdrawalTransitionPoolingError,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
impl From<&NotImplementedCreditWithdrawalTransitionPoolingError>
|
|
13
|
+
for NotImplementedCreditWithdrawalTransitionPoolingErrorWasm
|
|
14
|
+
{
|
|
15
|
+
fn from(e: &NotImplementedCreditWithdrawalTransitionPoolingError) -> Self {
|
|
16
|
+
Self { inner: e.clone() }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#[wasm_bindgen(js_class=NotImplementedCreditWithdrawalTransitionPoolingError)]
|
|
21
|
+
impl NotImplementedCreditWithdrawalTransitionPoolingErrorWasm {
|
|
22
|
+
#[wasm_bindgen(js_name=getPooling)]
|
|
23
|
+
pub fn pooling(&self) -> u8 {
|
|
24
|
+
self.inner.pooling()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#[wasm_bindgen(js_name=getCode)]
|
|
28
|
+
pub fn code(&self) -> u32 {
|
|
29
|
+
ConsensusError::from(self.inner.clone()).code()
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#[wasm_bindgen(getter)]
|
|
33
|
+
pub fn message(&self) -> String {
|
|
34
|
+
self.inner.to_string()
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -16,16 +16,15 @@ use crate::errors::consensus::basic::identity::{
|
|
|
16
16
|
IdentityInsufficientBalanceErrorWasm, InvalidAssetLockProofCoreChainHeightErrorWasm,
|
|
17
17
|
InvalidAssetLockProofTransactionHeightErrorWasm,
|
|
18
18
|
InvalidAssetLockTransactionOutputReturnSizeErrorWasm,
|
|
19
|
+
InvalidCreditWithdrawalTransitionCoreFeeErrorWasm,
|
|
20
|
+
InvalidCreditWithdrawalTransitionOutputScriptErrorWasm,
|
|
19
21
|
InvalidIdentityAssetLockProofChainLockValidationErrorWasm,
|
|
20
22
|
InvalidIdentityAssetLockTransactionErrorWasm,
|
|
21
23
|
InvalidIdentityAssetLockTransactionOutputErrorWasm,
|
|
22
|
-
InvalidIdentityCreditTransferAmountErrorWasm,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
InvalidIdentityPublicKeySecurityLevelErrorWasm, InvalidInstantAssetLockProofErrorWasm,
|
|
27
|
-
InvalidInstantAssetLockProofSignatureErrorWasm, MissingMasterPublicKeyErrorWasm,
|
|
28
|
-
NotImplementedIdentityCreditWithdrawalTransitionPoolingErrorWasm,
|
|
24
|
+
InvalidIdentityCreditTransferAmountErrorWasm, InvalidIdentityKeySignatureErrorWasm,
|
|
25
|
+
InvalidIdentityPublicKeyDataErrorWasm, InvalidIdentityPublicKeySecurityLevelErrorWasm,
|
|
26
|
+
InvalidInstantAssetLockProofErrorWasm, InvalidInstantAssetLockProofSignatureErrorWasm,
|
|
27
|
+
MissingMasterPublicKeyErrorWasm, NotImplementedCreditWithdrawalTransitionPoolingErrorWasm,
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
use crate::errors::consensus::state::identity::{
|
|
@@ -42,14 +41,14 @@ use dpp::consensus::basic::BasicError::{
|
|
|
42
41
|
IdentityAssetLockTransactionOutputNotFoundError, IncompatibleProtocolVersionError,
|
|
43
42
|
IncompatibleRe2PatternError, InvalidAssetLockProofCoreChainHeightError,
|
|
44
43
|
InvalidAssetLockProofTransactionHeightError, InvalidAssetLockTransactionOutputReturnSizeError,
|
|
44
|
+
InvalidCreditWithdrawalTransitionCoreFeeError,
|
|
45
|
+
InvalidCreditWithdrawalTransitionOutputScriptError,
|
|
45
46
|
InvalidIdentityAssetLockProofChainLockValidationError,
|
|
46
47
|
InvalidIdentityAssetLockTransactionError, InvalidIdentityAssetLockTransactionOutputError,
|
|
47
|
-
InvalidIdentityCreditTransferAmountError,
|
|
48
|
-
InvalidIdentityCreditWithdrawalTransitionCoreFeeError,
|
|
49
|
-
InvalidIdentityCreditWithdrawalTransitionOutputScriptError, InvalidIdentityPublicKeyDataError,
|
|
48
|
+
InvalidIdentityCreditTransferAmountError, InvalidIdentityPublicKeyDataError,
|
|
50
49
|
InvalidIdentityPublicKeySecurityLevelError, InvalidInstantAssetLockProofError,
|
|
51
50
|
InvalidInstantAssetLockProofSignatureError, MissingMasterPublicKeyError,
|
|
52
|
-
|
|
51
|
+
NotImplementedCreditWithdrawalTransitionPoolingError, ProtocolVersionParsingError,
|
|
53
52
|
UnsupportedProtocolVersionError, UnsupportedVersionError,
|
|
54
53
|
};
|
|
55
54
|
use dpp::consensus::basic::{BasicError, UnsupportedFeatureError};
|
|
@@ -88,6 +87,8 @@ use dpp::consensus::state::identity::RecipientIdentityDoesNotExistError;
|
|
|
88
87
|
use dpp::consensus::state::prefunded_specialized_balances::prefunded_specialized_balance_insufficient_error::PrefundedSpecializedBalanceInsufficientError;
|
|
89
88
|
use dpp::consensus::state::prefunded_specialized_balances::prefunded_specialized_balance_not_found_error::PrefundedSpecializedBalanceNotFoundError;
|
|
90
89
|
use dpp::consensus::state::token::{IdentityDoesNotHaveEnoughTokenBalanceError, IdentityTokenAccountNotFrozenError, IdentityTokenAccountFrozenError, TokenIsPausedError, IdentityTokenAccountAlreadyFrozenError, UnauthorizedTokenActionError, TokenSettingMaxSupplyToLessThanCurrentSupplyError, TokenMintPastMaxSupplyError, NewTokensDestinationIdentityDoesNotExistError, NewAuthorizedActionTakerIdentityDoesNotExistError, NewAuthorizedActionTakerGroupDoesNotExistError, NewAuthorizedActionTakerMainGroupNotSetError, InvalidGroupPositionError, TokenAlreadyPausedError, TokenNotPausedError, InvalidTokenClaimPropertyMismatch, InvalidTokenClaimNoCurrentRewards, InvalidTokenClaimWrongClaimant, TokenTransferRecipientIdentityNotExistError, PreProgrammedDistributionTimestampInPastError, IdentityHasNotAgreedToPayRequiredTokenAmountError, RequiredTokenPaymentInfoNotSetError, IdentityTryingToPayWithWrongTokenError, TokenDirectPurchaseUserPriceTooLow, TokenAmountUnderMinimumSaleAmount, TokenNotForDirectSale, InvalidTokenPositionStateError};
|
|
90
|
+
use dpp::consensus::state::address_funds::{AddressDoesNotExistError, AddressInvalidNonceError, AddressNotEnoughFundsError, AddressesNotEnoughFundsError};
|
|
91
|
+
use dpp::consensus::basic::state_transition::{StateTransitionNotActiveError, TransitionOverMaxInputsError, TransitionOverMaxOutputsError, InputWitnessCountMismatchError, TransitionNoInputsError, TransitionNoOutputsError, FeeStrategyEmptyError, FeeStrategyDuplicateError, FeeStrategyIndexOutOfBoundsError, FeeStrategyTooManyStepsError, InputBelowMinimumError, OutputBelowMinimumError, InputOutputBalanceMismatchError, OutputsNotGreaterThanInputsError, WithdrawalBalanceMismatchError, InsufficientFundingAmountError, InputsNotLessThanOutputsError, OutputAddressAlsoInputError, InvalidRemainderOutputCountError};
|
|
91
92
|
use dpp::consensus::state::voting::masternode_incorrect_voter_identity_id_error::MasternodeIncorrectVoterIdentityIdError;
|
|
92
93
|
use dpp::consensus::state::voting::masternode_incorrect_voting_address_error::MasternodeIncorrectVotingAddressError;
|
|
93
94
|
use dpp::consensus::state::voting::masternode_not_found_error::MasternodeNotFoundError;
|
|
@@ -115,7 +116,7 @@ use crate::errors::consensus::basic::state_transition::{
|
|
|
115
116
|
};
|
|
116
117
|
use crate::errors::consensus::signature::{
|
|
117
118
|
BasicBLSErrorWasm, BasicECDSAErrorWasm, IdentityNotFoundErrorWasm,
|
|
118
|
-
SignatureShouldNotBePresentErrorWasm,
|
|
119
|
+
SignatureShouldNotBePresentErrorWasm, UncompressedPublicKeyNotAllowedErrorWasm,
|
|
119
120
|
};
|
|
120
121
|
use crate::errors::consensus::state::data_contract::data_trigger::{
|
|
121
122
|
DataTriggerConditionErrorWasm, DataTriggerExecutionErrorWasm, DataTriggerInvalidResultErrorWasm,
|
|
@@ -430,6 +431,18 @@ pub fn from_state_error(state_error: &StateError) -> JsValue {
|
|
|
430
431
|
StateError::InvalidTokenPositionStateError(e) => {
|
|
431
432
|
generic_consensus_error!(InvalidTokenPositionStateError, e).into()
|
|
432
433
|
}
|
|
434
|
+
StateError::AddressDoesNotExistError(e) => {
|
|
435
|
+
generic_consensus_error!(AddressDoesNotExistError, e).into()
|
|
436
|
+
}
|
|
437
|
+
StateError::AddressNotEnoughFundsError(e) => {
|
|
438
|
+
generic_consensus_error!(AddressNotEnoughFundsError, e).into()
|
|
439
|
+
}
|
|
440
|
+
StateError::AddressesNotEnoughFundsError(e) => {
|
|
441
|
+
generic_consensus_error!(AddressesNotEnoughFundsError, e).into()
|
|
442
|
+
}
|
|
443
|
+
StateError::AddressInvalidNonceError(e) => {
|
|
444
|
+
generic_consensus_error!(AddressInvalidNonceError, e).into()
|
|
445
|
+
}
|
|
433
446
|
}
|
|
434
447
|
}
|
|
435
448
|
|
|
@@ -607,14 +620,14 @@ fn from_basic_error(basic_error: &BasicError) -> JsValue {
|
|
|
607
620
|
InvalidIdentityCreditTransferAmountError(e) => {
|
|
608
621
|
InvalidIdentityCreditTransferAmountErrorWasm::from(e).into()
|
|
609
622
|
}
|
|
610
|
-
|
|
611
|
-
|
|
623
|
+
InvalidCreditWithdrawalTransitionCoreFeeError(e) => {
|
|
624
|
+
InvalidCreditWithdrawalTransitionCoreFeeErrorWasm::from(e).into()
|
|
612
625
|
}
|
|
613
|
-
|
|
614
|
-
|
|
626
|
+
InvalidCreditWithdrawalTransitionOutputScriptError(e) => {
|
|
627
|
+
InvalidCreditWithdrawalTransitionOutputScriptErrorWasm::from(e).into()
|
|
615
628
|
}
|
|
616
|
-
|
|
617
|
-
|
|
629
|
+
NotImplementedCreditWithdrawalTransitionPoolingError(e) => {
|
|
630
|
+
NotImplementedCreditWithdrawalTransitionPoolingErrorWasm::from(e).into()
|
|
618
631
|
}
|
|
619
632
|
IncompatibleRe2PatternError(err) => IncompatibleRe2PatternErrorWasm::from(err).into(),
|
|
620
633
|
BasicError::VersionError(err) => generic_consensus_error!(VersionError, err).into(),
|
|
@@ -850,6 +863,63 @@ fn from_basic_error(basic_error: &BasicError) -> JsValue {
|
|
|
850
863
|
BasicError::InvalidKeyPurposeForContractBoundsError(e) => {
|
|
851
864
|
generic_consensus_error!(InvalidKeyPurposeForContractBoundsError, e).into()
|
|
852
865
|
}
|
|
866
|
+
BasicError::StateTransitionNotActiveError(e) => {
|
|
867
|
+
generic_consensus_error!(StateTransitionNotActiveError, e).into()
|
|
868
|
+
}
|
|
869
|
+
BasicError::TransitionOverMaxInputsError(e) => {
|
|
870
|
+
generic_consensus_error!(TransitionOverMaxInputsError, e).into()
|
|
871
|
+
}
|
|
872
|
+
BasicError::TransitionOverMaxOutputsError(e) => {
|
|
873
|
+
generic_consensus_error!(TransitionOverMaxOutputsError, e).into()
|
|
874
|
+
}
|
|
875
|
+
BasicError::InputWitnessCountMismatchError(e) => {
|
|
876
|
+
generic_consensus_error!(InputWitnessCountMismatchError, e).into()
|
|
877
|
+
}
|
|
878
|
+
BasicError::TransitionNoInputsError(e) => {
|
|
879
|
+
generic_consensus_error!(TransitionNoInputsError, e).into()
|
|
880
|
+
}
|
|
881
|
+
BasicError::TransitionNoOutputsError(e) => {
|
|
882
|
+
generic_consensus_error!(TransitionNoOutputsError, e).into()
|
|
883
|
+
}
|
|
884
|
+
BasicError::FeeStrategyEmptyError(e) => {
|
|
885
|
+
generic_consensus_error!(FeeStrategyEmptyError, e).into()
|
|
886
|
+
}
|
|
887
|
+
BasicError::FeeStrategyDuplicateError(e) => {
|
|
888
|
+
generic_consensus_error!(FeeStrategyDuplicateError, e).into()
|
|
889
|
+
}
|
|
890
|
+
BasicError::FeeStrategyIndexOutOfBoundsError(e) => {
|
|
891
|
+
generic_consensus_error!(FeeStrategyIndexOutOfBoundsError, e).into()
|
|
892
|
+
}
|
|
893
|
+
BasicError::FeeStrategyTooManyStepsError(e) => {
|
|
894
|
+
generic_consensus_error!(FeeStrategyTooManyStepsError, e).into()
|
|
895
|
+
}
|
|
896
|
+
BasicError::InputBelowMinimumError(e) => {
|
|
897
|
+
generic_consensus_error!(InputBelowMinimumError, e).into()
|
|
898
|
+
}
|
|
899
|
+
BasicError::OutputBelowMinimumError(e) => {
|
|
900
|
+
generic_consensus_error!(OutputBelowMinimumError, e).into()
|
|
901
|
+
}
|
|
902
|
+
BasicError::InputOutputBalanceMismatchError(e) => {
|
|
903
|
+
generic_consensus_error!(InputOutputBalanceMismatchError, e).into()
|
|
904
|
+
}
|
|
905
|
+
BasicError::OutputsNotGreaterThanInputsError(e) => {
|
|
906
|
+
generic_consensus_error!(OutputsNotGreaterThanInputsError, e).into()
|
|
907
|
+
}
|
|
908
|
+
BasicError::WithdrawalBalanceMismatchError(e) => {
|
|
909
|
+
generic_consensus_error!(WithdrawalBalanceMismatchError, e).into()
|
|
910
|
+
}
|
|
911
|
+
BasicError::InsufficientFundingAmountError(e) => {
|
|
912
|
+
generic_consensus_error!(InsufficientFundingAmountError, e).into()
|
|
913
|
+
}
|
|
914
|
+
BasicError::InputsNotLessThanOutputsError(e) => {
|
|
915
|
+
generic_consensus_error!(InputsNotLessThanOutputsError, e).into()
|
|
916
|
+
}
|
|
917
|
+
BasicError::OutputAddressAlsoInputError(e) => {
|
|
918
|
+
generic_consensus_error!(OutputAddressAlsoInputError, e).into()
|
|
919
|
+
}
|
|
920
|
+
BasicError::InvalidRemainderOutputCountError(e) => {
|
|
921
|
+
generic_consensus_error!(InvalidRemainderOutputCountError, e).into()
|
|
922
|
+
}
|
|
853
923
|
}
|
|
854
924
|
}
|
|
855
925
|
|
|
@@ -883,6 +953,9 @@ fn from_signature_error(signature_error: &SignatureError) -> JsValue {
|
|
|
883
953
|
SignatureError::InvalidSignaturePublicKeyPurposeError(err) => {
|
|
884
954
|
InvalidSignaturePublicKeyPurposeErrorWasm::from(err).into()
|
|
885
955
|
}
|
|
956
|
+
SignatureError::UncompressedPublicKeyNotAllowedError(err) => {
|
|
957
|
+
UncompressedPublicKeyNotAllowedErrorWasm::from(err).into()
|
|
958
|
+
}
|
|
886
959
|
}
|
|
887
960
|
}
|
|
888
961
|
|
|
@@ -2,8 +2,10 @@ mod basic_bls_error;
|
|
|
2
2
|
mod basic_ecdsa_error;
|
|
3
3
|
mod identity_not_found_error;
|
|
4
4
|
mod signature_should_not_be_present_error;
|
|
5
|
+
mod uncompressed_public_key_not_allowed_error;
|
|
5
6
|
|
|
6
7
|
pub use basic_bls_error::*;
|
|
7
8
|
pub use basic_ecdsa_error::*;
|
|
8
9
|
pub use identity_not_found_error::*;
|
|
9
10
|
pub use signature_should_not_be_present_error::*;
|
|
11
|
+
pub use uncompressed_public_key_not_allowed_error::*;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
use dpp::consensus::codes::ErrorWithCode;
|
|
2
|
+
use dpp::consensus::signature::UncompressedPublicKeyNotAllowedError;
|
|
3
|
+
use dpp::consensus::ConsensusError;
|
|
4
|
+
|
|
5
|
+
use wasm_bindgen::prelude::*;
|
|
6
|
+
|
|
7
|
+
#[wasm_bindgen(js_name=UncompressedPublicKeyNotAllowedError)]
|
|
8
|
+
pub struct UncompressedPublicKeyNotAllowedErrorWasm {
|
|
9
|
+
inner: UncompressedPublicKeyNotAllowedError,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
impl From<&UncompressedPublicKeyNotAllowedError> for UncompressedPublicKeyNotAllowedErrorWasm {
|
|
13
|
+
fn from(e: &UncompressedPublicKeyNotAllowedError) -> Self {
|
|
14
|
+
Self { inner: e.clone() }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#[wasm_bindgen(js_class=UncompressedPublicKeyNotAllowedError)]
|
|
19
|
+
impl UncompressedPublicKeyNotAllowedErrorWasm {
|
|
20
|
+
#[wasm_bindgen(js_name=getCode)]
|
|
21
|
+
pub fn get_code(&self) -> u32 {
|
|
22
|
+
ConsensusError::from(self.inner.clone()).code()
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#[wasm_bindgen(getter)]
|
|
26
|
+
pub fn message(&self) -> String {
|
|
27
|
+
self.inner.to_string()
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#[wasm_bindgen(js_name=getPublicKeySize)]
|
|
31
|
+
pub fn get_public_key_size(&self) -> usize {
|
|
32
|
+
self.inner.public_key_size()
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -2,6 +2,7 @@ use dpp::identity::state_transition::asset_lock_proof::AssetLockProof;
|
|
|
2
2
|
use dpp::identity::state_transition::AssetLockProved;
|
|
3
3
|
use dpp::state_transition::identity_create_transition::accessors::IdentityCreateTransitionAccessorsV0;
|
|
4
4
|
use dpp::state_transition::public_key_in_creation::IdentityPublicKeyInCreation;
|
|
5
|
+
use dpp::state_transition::StateTransitionSingleSigned;
|
|
5
6
|
use dpp::{
|
|
6
7
|
identifier::Identifier, state_transition::identity_create_transition::IdentityCreateTransition,
|
|
7
8
|
state_transition::StateTransitionLike,
|
|
@@ -29,7 +29,7 @@ use dpp::platform_value::string_encoding;
|
|
|
29
29
|
use dpp::platform_value::string_encoding::Encoding;
|
|
30
30
|
use dpp::serialization::PlatformSerializable;
|
|
31
31
|
use dpp::state_transition::identity_create_transition::accessors::IdentityCreateTransitionAccessorsV0;
|
|
32
|
-
use dpp::state_transition::StateTransition;
|
|
32
|
+
use dpp::state_transition::{StateTransition, StateTransitionOwned, StateTransitionSingleSigned};
|
|
33
33
|
use dpp::{
|
|
34
34
|
identity::state_transition::asset_lock_proof::AssetLockProof,
|
|
35
35
|
state_transition::identity::identity_create_transition::IdentityCreateTransition,
|
|
@@ -164,7 +164,7 @@ impl IdentityCreateTransitionWasm {
|
|
|
164
164
|
|
|
165
165
|
#[wasm_bindgen(js_name=getOwnerId)]
|
|
166
166
|
pub fn get_owner_id(&self) -> IdentifierWrapper {
|
|
167
|
-
|
|
167
|
+
self.0.owner_id().into()
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
#[wasm_bindgen(js_name=getUserFeeIncrease)]
|
|
@@ -359,7 +359,8 @@ impl IdentityCreateTransitionWasm {
|
|
|
359
359
|
.sign_by_private_key(private_key.as_slice(), key_type, &bls_adapter)
|
|
360
360
|
.with_js_error()?;
|
|
361
361
|
|
|
362
|
-
self.0
|
|
362
|
+
self.0
|
|
363
|
+
.set_signature(wrapper.signature().unwrap().to_owned());
|
|
363
364
|
|
|
364
365
|
Ok(())
|
|
365
366
|
}
|
|
@@ -2,7 +2,7 @@ use dpp::identity::KeyID;
|
|
|
2
2
|
|
|
3
3
|
use dpp::state_transition::identity_credit_transfer_transition::accessors::IdentityCreditTransferTransitionAccessorsV0;
|
|
4
4
|
use dpp::state_transition::identity_credit_transfer_transition::IdentityCreditTransferTransition;
|
|
5
|
-
use dpp::state_transition::StateTransitionIdentitySigned;
|
|
5
|
+
use dpp::state_transition::{StateTransitionIdentitySigned, StateTransitionSingleSigned};
|
|
6
6
|
use dpp::{identifier::Identifier, state_transition::StateTransitionLike};
|
|
7
7
|
use serde::Deserialize;
|
|
8
8
|
use std::default::Default;
|
|
@@ -19,8 +19,8 @@ use dpp::serialization::PlatformSerializable;
|
|
|
19
19
|
use dpp::state_transition::identity_credit_transfer_transition::accessors::IdentityCreditTransferTransitionAccessorsV0;
|
|
20
20
|
|
|
21
21
|
use dpp::state_transition::identity_credit_transfer_transition::IdentityCreditTransferTransition;
|
|
22
|
-
use dpp::state_transition::StateTransitionLike;
|
|
23
22
|
use dpp::state_transition::{StateTransition, StateTransitionIdentitySigned};
|
|
23
|
+
use dpp::state_transition::{StateTransitionLike, StateTransitionSingleSigned};
|
|
24
24
|
#[wasm_bindgen(js_name=IdentityCreditTransferTransition)]
|
|
25
25
|
#[derive(Clone)]
|
|
26
26
|
pub struct IdentityCreditTransferTransitionWasm(IdentityCreditTransferTransition);
|
|
@@ -322,7 +322,8 @@ impl IdentityCreditTransferTransitionWasm {
|
|
|
322
322
|
.sign_by_private_key(private_key.as_slice(), key_type, &bls_adapter)
|
|
323
323
|
.with_js_error()?;
|
|
324
324
|
|
|
325
|
-
self.0
|
|
325
|
+
self.0
|
|
326
|
+
.set_signature(wrapper.signature().unwrap().to_owned());
|
|
326
327
|
|
|
327
328
|
Ok(())
|
|
328
329
|
}
|
|
@@ -362,7 +363,7 @@ impl IdentityCreditTransferTransitionWasm {
|
|
|
362
363
|
)
|
|
363
364
|
.with_js_error()?;
|
|
364
365
|
|
|
365
|
-
let signature = state_transition.signature().to_owned();
|
|
366
|
+
let signature = state_transition.signature().unwrap().to_owned();
|
|
366
367
|
let signature_public_key_id = state_transition.signature_public_key_id().unwrap_or(0);
|
|
367
368
|
|
|
368
369
|
self.0.set_signature(signature);
|
|
@@ -4,7 +4,7 @@ use dpp::identity::core_script::CoreScript;
|
|
|
4
4
|
use dpp::prelude::IdentityNonce;
|
|
5
5
|
use dpp::state_transition::identity_credit_withdrawal_transition::accessors::IdentityCreditWithdrawalTransitionAccessorsV0;
|
|
6
6
|
use dpp::state_transition::identity_credit_withdrawal_transition::IdentityCreditWithdrawalTransition;
|
|
7
|
-
use dpp::state_transition::StateTransitionIdentitySigned;
|
|
7
|
+
use dpp::state_transition::{StateTransitionIdentitySigned, StateTransitionSingleSigned};
|
|
8
8
|
use dpp::withdrawal::Pooling;
|
|
9
9
|
use dpp::{identifier::Identifier, state_transition::StateTransitionLike};
|
|
10
10
|
use serde::Deserialize;
|
|
@@ -19,8 +19,8 @@ use dpp::platform_value::{string_encoding, BinaryData};
|
|
|
19
19
|
use dpp::serialization::PlatformSerializable;
|
|
20
20
|
use dpp::state_transition::identity_credit_withdrawal_transition::accessors::IdentityCreditWithdrawalTransitionAccessorsV0;
|
|
21
21
|
use dpp::state_transition::identity_credit_withdrawal_transition::IdentityCreditWithdrawalTransition;
|
|
22
|
-
use dpp::state_transition::StateTransitionLike;
|
|
23
22
|
use dpp::state_transition::{StateTransition, StateTransitionIdentitySigned};
|
|
23
|
+
use dpp::state_transition::{StateTransitionLike, StateTransitionSingleSigned};
|
|
24
24
|
use dpp::withdrawal::Pooling;
|
|
25
25
|
|
|
26
26
|
#[wasm_bindgen(js_name=IdentityCreditWithdrawalTransition)]
|
|
@@ -394,7 +394,8 @@ impl IdentityCreditWithdrawalTransitionWasm {
|
|
|
394
394
|
.sign_by_private_key(private_key.as_slice(), key_type, &bls_adapter)
|
|
395
395
|
.with_js_error()?;
|
|
396
396
|
|
|
397
|
-
self.0
|
|
397
|
+
self.0
|
|
398
|
+
.set_signature(wrapper.signature().unwrap().to_owned());
|
|
398
399
|
|
|
399
400
|
Ok(())
|
|
400
401
|
}
|
|
@@ -434,7 +435,7 @@ impl IdentityCreditWithdrawalTransitionWasm {
|
|
|
434
435
|
)
|
|
435
436
|
.with_js_error()?;
|
|
436
437
|
|
|
437
|
-
let signature = state_transition.signature().to_owned();
|
|
438
|
+
let signature = state_transition.signature().unwrap().to_owned();
|
|
438
439
|
let signature_public_key_id = state_transition.signature_public_key_id().unwrap_or(0);
|
|
439
440
|
|
|
440
441
|
self.0.set_signature(signature);
|
|
@@ -2,6 +2,7 @@ use dpp::identity::state_transition::asset_lock_proof::AssetLockProof;
|
|
|
2
2
|
use dpp::identity::state_transition::AssetLockProved;
|
|
3
3
|
use dpp::state_transition::identity_topup_transition::accessors::IdentityTopUpTransitionAccessorsV0;
|
|
4
4
|
use dpp::state_transition::identity_topup_transition::IdentityTopUpTransition;
|
|
5
|
+
use dpp::state_transition::StateTransitionSingleSigned;
|
|
5
6
|
use dpp::{identifier::Identifier, state_transition::StateTransitionLike};
|
|
6
7
|
use serde::Deserialize;
|
|
7
8
|
use std::default::Default;
|
|
@@ -28,7 +28,7 @@ use dpp::platform_value::string_encoding::Encoding;
|
|
|
28
28
|
use dpp::serialization::PlatformSerializable;
|
|
29
29
|
use dpp::state_transition::identity_topup_transition::accessors::IdentityTopUpTransitionAccessorsV0;
|
|
30
30
|
use dpp::state_transition::identity_topup_transition::IdentityTopUpTransition;
|
|
31
|
-
use dpp::state_transition::StateTransition;
|
|
31
|
+
use dpp::state_transition::{StateTransition, StateTransitionOwned, StateTransitionSingleSigned};
|
|
32
32
|
use dpp::{
|
|
33
33
|
identifier::Identifier, identity::state_transition::asset_lock_proof::AssetLockProof,
|
|
34
34
|
state_transition::StateTransitionLike,
|
|
@@ -304,7 +304,8 @@ impl IdentityTopUpTransitionWasm {
|
|
|
304
304
|
.sign_by_private_key(private_key.as_slice(), key_type, &bls_adapter)
|
|
305
305
|
.with_js_error()?;
|
|
306
306
|
|
|
307
|
-
self.0
|
|
307
|
+
self.0
|
|
308
|
+
.set_signature(wrapper.signature().unwrap().to_owned());
|
|
308
309
|
|
|
309
310
|
Ok(())
|
|
310
311
|
}
|
|
@@ -2,7 +2,7 @@ use dpp::identity::KeyID;
|
|
|
2
2
|
use dpp::state_transition::identity_update_transition::accessors::IdentityUpdateTransitionAccessorsV0;
|
|
3
3
|
use dpp::state_transition::identity_update_transition::IdentityUpdateTransition;
|
|
4
4
|
use dpp::state_transition::public_key_in_creation::IdentityPublicKeyInCreation;
|
|
5
|
-
use dpp::state_transition::StateTransitionIdentitySigned;
|
|
5
|
+
use dpp::state_transition::{StateTransitionIdentitySigned, StateTransitionSingleSigned};
|
|
6
6
|
use dpp::{identifier::Identifier, state_transition::StateTransitionLike};
|
|
7
7
|
use serde::Deserialize;
|
|
8
8
|
use std::default::Default;
|