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

feat: add payment hash type #6

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

quake
Copy link
Member

@quake quake commented Jun 26, 2024

this PR added payment hash type for sha256 by using the high 7 bits of htlc_type field in witness.

@quake quake requested a review from doitian June 26, 2024 06:51
doitian added a commit to doitian/fiber that referenced this pull request Jun 27, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6
doitian added a commit to doitian/fiber that referenced this pull request Jun 27, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6
doitian added a commit to doitian/fiber that referenced this pull request Jun 27, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6
doitian added a commit to doitian/fiber that referenced this pull request Jun 27, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6
doitian added a commit to doitian/fiber that referenced this pull request Jun 27, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6

- Added a field `hash_algorithm` when adding TLC
- Save the `hash_algorithm` in the internal TLC struct
- Check hash against preimage using the saved `hash_algorithm`
- Added `hash_algorithm` in the invoice as a new attribute
doitian added a commit to doitian/fiber that referenced this pull request Jun 28, 2024
Allow choosing the hash algorithm when adding the HTLC output.

Related PR: nervosnetwork/fiber-scripts#6

- Added a field `hash_algorithm` when adding TLC
- Save the `hash_algorithm` in the internal TLC struct
- Check hash against preimage using the saved `hash_algorithm`
- Added `hash_algorithm` in the invoice as a new attribute
@quake quake merged commit 4d0becb into nervosnetwork:main Jun 28, 2024
1 check passed
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