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

Ability to detect and spend unblinded addresses #42

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

delcin-raj
Copy link

  • Added blinded: bool field, false means unblinded.
  • created build_unblinded_tx function, to spend unblinded utxos

Have changed the type of value in Balance to u64, as conversion from
i64 to u64 always succeeds and unsigned ints are the correct types for amounts.

Given default blinded: true from conversions from AssetIdTreeMap types to Balances.

* Added `blinded: bool` field, false means unblinded.
* created `build_unblinded_tx` function, to spend unblinded utxos
@@ -120,7 +116,8 @@ impl From<WalletTxOut> for TxOut {
#[frb(dart_metadata=("freezed"))]
pub struct Balance {
pub asset_id: String,
pub value: i64,
Copy link
Collaborator

Choose a reason for hiding this comment

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

the reason balance value is i64 is because in the list of transactions a send tx shows a negative Balance

@ethicnology ethicnology changed the base branch from trunk to develop January 13, 2025 16:18
@ethicnology
Copy link
Contributor

Hello, we have slightly changed the branch organization we move from trunk to develop and main protected for releases.

Sorry for the inconvenience, can you rebase your branch on origin/develop and resolve the related conflicts ?

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.

3 participants