Skip to content
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: add encumber aggregate utxo creation method for wallet cli #4798

Conversation

jorgeantonio21
Copy link
Contributor

Description

Given a list of signatures, and other metadata, it is desirable to create an encumber aggregate utxo. This PR attempts to produce logic for this new feature.

Motivation and Context

How Has This Been Tested?

jorgeantonio21 and others added 30 commits September 27, 2022 18:13
Added an m-of-n multisig TariScript that returns the aggregate public key of
the signatories if successful and fails otherwise.
…gregatePubKey' into ja-multisig-signature-utxo
sdbondi and others added 9 commits October 6, 2022 16:44
Description
---
Removed stray unwrap in liveness service

Motivation and Context
---
Caused a base node to panic in stress test conditions.

```
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: DhtOutboundError(RequesterReplyChannelClosed)', base_layer\p2p\src\services\liveness\service.rs:164:71
```

How Has This Been Tested?
---
Tests pass
@jorgeantonio21 jorgeantonio21 changed the title feature: add encumber aggregate utxo creation method for wallet cli feat: add encumber aggregate utxo creation method for wallet cli Oct 12, 2022
base_layer/p2p/src/services/liveness/service.rs Outdated Show resolved Hide resolved
base_layer/wallet/src/output_manager_service/service.rs Outdated Show resolved Hide resolved
Comment on lines 1159 to 1160
let _size = self
.event_publisher
.send(Arc::new(TransactionEvent::TransactionCompletedImmediately(tx_id)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont want to complete this yet, remember this is incomplete

Comment on lines 1170 to 1194
self.output_manager_service
.add_rewindable_output_with_tx_id(
tx_id,
unblinded_output,
Some(SpendingPriority::Normal),
Some(rewind_data),
)
.await?;
self.submit_transaction(
transaction_broadcast_join_handles,
CompletedTransaction::new(
tx_id,
self.resources.node_identity.public_key().clone(),
self.resources.node_identity.public_key().clone(),
amount,
fee,
tx.clone(),
TransactionStatus::Completed,
"".to_string(),
Utc::now().naive_utc(),
TransactionDirection::Outbound,
None,
None,
None,
),
)?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont want to complete this yet, remember this is incomplete
leave this as pending

@jorgeantonio21 jorgeantonio21 marked this pull request as ready for review October 12, 2022 16:33
@jorgeantonio21 jorgeantonio21 force-pushed the ja-multisig-metadata-signature-utxo branch from 30a589c to a79e644 Compare October 12, 2022 22:07
@stringhandler stringhandler merged commit 2168946 into tari-project:feature-m-of-n Oct 13, 2022
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 24, 2024
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 24, 2024
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 24, 2024
@hansieodendaal hansieodendaal mentioned this pull request Jun 24, 2024
4 tasks
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 24, 2024
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 24, 2024
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 26, 2024
hansieodendaal added a commit to hansieodendaal/tari that referenced this pull request Jun 27, 2024
SWvheerden pushed a commit that referenced this pull request Jun 28, 2024
Description
---

Apply m_of_n_feature branch

- PR #4751
- PRs #4759, #4776, #4798, #4822

Motivation and Context
---

Add m-of-n scripting ability

How Has This Been Tested?
---

**Note:** Not tested yet

What process can a PR reviewer use to test or verify this change?
---

Code review

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants