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

BSIP 64: Optional HTLC Preimage Length and Add Hash160 Algorithm #195

Merged
merged 6 commits into from
Sep 7, 2019

Conversation

jmjatlanta
Copy link
Contributor

@jmjatlanta jmjatlanta commented Aug 21, 2019

This BSIP will remove the requirement of a preimage length (making it optional), and adding an additional hash algorithm.

This PR fixes Issue #163

@jmjatlanta jmjatlanta changed the title Initial commit of BSIP 64 BSIP 64: HTLC Preimage length and 1 additional hash algorithm Aug 21, 2019
@xeroc
Copy link
Member

xeroc commented Aug 21, 2019

I like the solution that sets the size to 0 to disable length check!

+1

@ryanRfox ryanRfox changed the title BSIP 64: HTLC Preimage length and 1 additional hash algorithm BSIP 64: Optional HTLC Preimage Length and Add Hash160 Algorithm Aug 21, 2019
@jmjatlanta
Copy link
Contributor Author

@pmconrad I believe I addressed your concerns. Please review and let me know if you have anything else. Thanks!

@nathanielhourt
Copy link
Contributor

nathanielhourt commented Aug 27, 2019

I've written a hash160 implementation here, although I'd like to get some test data to ensure it is compliant with other implementations. Does anyone know of any test data or an easy-to-use hash160 tool?

@pmconrad
Copy link
Contributor

@nathanhourt have you seen bitshares/bitshares-fc#143 ?

@nathanielhourt
Copy link
Contributor

Ahh, nope.

@pmconrad
Copy link
Contributor

pmconrad commented Sep 2, 2019

How about including this change here #202:

Introducing this commonly used and known item for HTLC transaction as an optional feature is a very helpful step to satisfy the future of Cross Chain Swaps, parties involved within the Cross Chain Swaps will have to communicate their external addresses or some helpful references and info within the HTLC transaction upon creation.

@pmconrad
Copy link
Contributor

pmconrad commented Sep 3, 2019

Please specify that the memo field will be added as an extension to htlc_create_operation. This is sufficient to include it into the recipient's history, so there's no need to add it to the htlc_object.

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.

5 participants