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

create_balance_proof() should return a dictionary not a tuple #1167

Closed
pirapira opened this issue Aug 15, 2019 · 4 comments
Closed

create_balance_proof() should return a dictionary not a tuple #1167

pirapira opened this issue Aug 15, 2019 · 4 comments
Assignees
Labels
efforts: a few hours hack P1 urgent, blocker, or makes life easier forever

Comments

@pirapira
Copy link
Contributor

Because then the return value can be used as **balance_proof instead of *balance_proof. That plays more nicely with the kwarg usage.

@pirapira
Copy link
Contributor Author

See #1150 (comment) for an example.

@pirapira pirapira added efforts: a few hours hack P1 urgent, blocker, or makes life easier forever labels Aug 15, 2019
@pirapira pirapira self-assigned this Oct 5, 2019
@pirapira
Copy link
Contributor Author

pirapira commented Oct 5, 2019

This approach does not work in a straightforward way. It's unclear how to name the signature.

closeChannel() wants

        bytes memory non_closing_signature,

while

create_balance_proof_countersignature() wants

        original_signature: bytes,

@pirapira
Copy link
Contributor Author

pirapira commented Oct 5, 2019

  • option 1: rename non_closing_signature into original_signature in the smart contract
  • option 2: decompose the balance proof into members when necessary
  • option 3: leave it as it is

I think, for now, option 2 is the most reasonable.

@pirapira
Copy link
Contributor Author

#1272 fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
efforts: a few hours hack P1 urgent, blocker, or makes life easier forever
Projects
None yet
Development

No branches or pull requests

1 participant