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 2 commits into
base: trunk
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

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.

2 participants