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

Send signed witness to counterparty #4314

Closed

Conversation

sqrrm
Copy link
Member

@sqrrm sqrrm commented Jun 16, 2020

Signer sends SignedWitness to signee after trade is completed. This allows the signee to make sure their witness is properly published in case the signer isn't well connected. An extra measure to assure that signed witnesses are well distributed upon signing.

I made this on top of PR #4280 as it's touching a lot of the same code. That PR should be merged before this one.

sqrrm added 10 commits May 31, 2020 15:08
Add orphaned witness log
Better filter for root signedwitnesses

Add debug keyboard shortcuts:
- ctrl+shift+L -> logSignedWitnesses
- ctrl+shift+S -> logSigners
Improve debug logging. Lower level from warning to info
Fix broken test
Add example code to clean out unnecessary SignedWitnesses
Legacy arbitrator can sign unsigned signed witness signer pubkeys
To sign, from legacy arbitrator support, ctrl+O
Return the signed witness when signed by a trader
@ripcurlx
Copy link
Contributor

ripcurlx commented Jul 3, 2020

@sqrrm Please resolve the conflict - thanks!

@sqrrm
Copy link
Member Author

sqrrm commented Jul 3, 2020

I think this merge conflict should be resolved once #4280 is merged since I fixed the same conflict there

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

ACK

Tested it on regtest with both clients on the new version and a regression test with the buyer on the old version. During the regression test an error is logged that has no effect on the trade process as the new message type is not known by the client. So everything is working as expected.

@ripcurlx ripcurlx closed this Jul 3, 2020
@ripcurlx ripcurlx reopened this Jul 3, 2020
@sqrrm sqrrm closed this Jul 3, 2020
@sqrrm
Copy link
Member Author

sqrrm commented Jul 3, 2020

Travis issues, will create new PR

@sqrrm sqrrm deleted the send-signed-witness-to-counterparty branch May 3, 2021 12:41
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