-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: identity funding with asset lock special transactions #1510
Conversation
…eat/process-asset-locks
…eat/process-asset-locks
# Conflicts: # .pnp.cjs # packages/dashmate/configs/getConfigFileMigrationsFactory.js # packages/js-dapi-client/package.json # packages/js-dpp/lib/test/fixtures/getChainAssetLockProofFixture.js # packages/js-dpp/lib/test/fixtures/getInstantAssetLockProofFixture.js # packages/js-dpp/package.json # packages/rs-drive-abci/tests/strategy_tests/verify_state_transitions.rs # packages/rs-platform-version/src/version/drive_abci_versions.rs # packages/rs-platform-version/src/version/mocks/v2_test.rs # packages/rs-platform-version/src/version/mocks/v3_test.rs # packages/rs-platform-version/src/version/v1.rs # packages/wasm-dpp/test/unit/identity/stateTransition/assetLockProof/ChainAssetLockProof.spec.js # packages/wasm-dpp/test/unit/identity/stateTransition/assetLockProof/InstantAssetLockProof.spec.js # yarn.lock
c11944d
to
b82c18f
Compare
# Conflicts: # packages/dashmate/configs/getConfigFileMigrationsFactory.js
6d2dac6
to
6905a64
Compare
# Conflicts: # packages/dashmate/configs/defaults/getBaseConfigFactory.js # packages/dashmate/configs/getConfigFileMigrationsFactory.js # packages/dashmate/src/config/configFile/migrateConfigFileFactory.js # packages/dashmate/test/unit/commands/config/configFile/migrateConfigFileFactory.spec.js
...es/rs-dpp/src/identity/state_transition/asset_lock_proof/instant/instant_asset_lock_proof.rs
Outdated
Show resolved
Hide resolved
map.insert("outputIndex", self.output_index); | ||
map.insert("transaction", transaction_buffer); | ||
map.insert("instantLock", is_lock_buffer); | ||
|
||
map.to_bytes() | ||
.map_err(|e| ProtocolError::EncodingError(e.to_string())) | ||
} | ||
|
||
// TODO: Versioning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really should be versioned now.
...e-abci/src/execution/validation/state_transition/common/asset_lock/one_time_signed/v0/mod.rs
Outdated
Show resolved
Hide resolved
@@ -52,6 +53,8 @@ pub struct PlatformRef<'a, C> { | |||
pub config: &'a PlatformConfig, | |||
/// Core RPC Client | |||
pub core_rpc: &'a C, | |||
/// Block info | |||
pub block_info: &'a BlockInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this is wrong, you don't add state information to the Platform Ref
@@ -27,7 +27,7 @@ bs58 = "0.4.0" | |||
hex = "0.4.3" | |||
indexmap = { version = "1.9.3", features = ["serde"] } | |||
sha2 = "0.10.6" | |||
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore-rpc", tag = "v0.15.1" } | |||
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore-rpc", branch = "master" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be targeting master, instead should be a tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will release new version
Issue being fixed or feature implemented
Currently, we are using normal transactions with OP_RETURN output to fund identities since it was a temporary solution to get the identity funding feature done earlier. Asset Lock validation logic was ported only partially from JS DPP and Drive.
What was done?
Transaction#getOutPointBuffer
(JS)How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only