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

Add byte accessors to ElligatorSwiftSharedSecret #676

Merged

Conversation

Kixunil
Copy link
Collaborator

@Kixunil Kixunil commented Jan 30, 2024

The inner bytes of ElligatorSwiftSharedSecret were almost inaccessible making the type almost useless, so this commit adds methods to access inner bytes.

Closes #675

@Kixunil Kixunil added the API hole Important API missing - significantly degrades usability or idiomatic usage label Jan 30, 2024
@apoelstra
Copy link
Member

Can you run cargo fmt on this PR?

The inner bytes of `ElligatorSwiftSharedSecret` were almost inaccessible
making the type almost useless, so this commit adds methods to access
inner bytes.

Closes rust-bitcoin#675
@Kixunil Kixunil force-pushed the elligator-swift-secret-accessors branch from 396a739 to 7fe89c4 Compare January 30, 2024 16:01
@Kixunil
Copy link
Collaborator Author

Kixunil commented Jan 30, 2024

Given there are now two people who need it and it's a pretty significant missing piece (the hasher trick is horrible IMO) I think it's a strong argument for making an early point release. It looks like there weren't breaking changes since last release (I've only looked at commit titles).

@apoelstra
Copy link
Member

Agreed. I'll take a look and open a PR.

Now that you are a maintainer here I don't need to do silly stuff like requesting you make the PR so I can ACK it :).

@apoelstra
Copy link
Member

Yep, confirmed that the only two PRs since 0.28.1 are #674 and #611 ... both of which could use a point release as well :).

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 7fe89c4

@apoelstra apoelstra merged commit 9bc110b into rust-bitcoin:master Jan 30, 2024
20 checks passed
@Kixunil Kixunil deleted the elligator-swift-secret-accessors branch January 30, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API hole Important API missing - significantly degrades usability or idiomatic usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing methods to work with byte representations of ElligatorSwiftSharedSecret
2 participants