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

Delegated signature #304

Merged
merged 6 commits into from
Dec 21, 2020
Merged

Delegated signature #304

merged 6 commits into from
Dec 21, 2020

Conversation

getlarge
Copy link
Member

Implement logic from @zzappie in Python driver.

@codecov-io
Copy link

codecov-io commented Dec 10, 2020

Codecov Report

Merging #304 (3447022) into master (ea57280) will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
+ Coverage   95.16%   95.31%   +0.15%     
==========================================
  Files          13       13              
  Lines         310      320      +10     
==========================================
+ Hits          295      305      +10     
  Misses         15       15              
Impacted Files Coverage Δ
src/transaction.js 97.77% <100.00%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f08ea00...3447022. Read the comment docs.

@getlarge getlarge requested a review from davie0 December 10, 2020 12:13
@davie0
Copy link
Contributor

davie0 commented Dec 10, 2020

Thank you @getlarge! Looks great!

We need to come to conclusion on what to pass to the signing callback. I made lazy choice of passing the whole tx mapping. And you additionally pass input field. I'll make adjustments to python-driver pr and report back today.

Any thoughts on what the interface supposed to be?

@getlarge
Copy link
Member Author

Since inside the delegateSignTransaction we iterate over the transaction inputs, i thought it make sense to pass the current input to eventually filter a set of keys by checking the owners_before.

I also think it make sense to pass the whole the transaction if someone needs information to perform the signature, it will be available in the callback.

I'd like to also make this function's interface working for partial signature of a transaction, but my brain is still stuck on understanding all the tenants.

@getlarge
Copy link
Member Author

@zzappie So should we modify the delegateSignTransaction ?

@davie0
Copy link
Contributor

davie0 commented Dec 16, 2020 via email

@getlarge
Copy link
Member Author

Your summary makes sense. Do you know if version has an influence on the type of signature to provide, or there were changes of the expected signatures/fulfillement across versions of BigChain ?

When you mean message, you talk about the transaction hash right ?

@davie0
Copy link
Contributor

davie0 commented Dec 17, 2020 via email

Signed-off-by: getlarge <ed@getlarge.eu>
Signed-off-by: getlarge <ed@getlarge.eu>
Signed-off-by: getlarge <ed@getlarge.eu>
Signed-off-by: getlarge <ed@getlarge.eu>
Signed-off-by: getlarge <ed@getlarge.eu>
Signed-off-by: getlarge <ed@getlarge.eu>
@getlarge getlarge merged commit 6dbafa8 into master Dec 21, 2020
@getlarge getlarge deleted the delegated-signature branch December 21, 2020 06:35
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