Skip to content

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
@Kixunil Kixunil deleted the elligator-swift-secret-accessors branch January 30, 2024 18:19
chain-forgexcr45 added a commit to chain-forgexcr45/rust-secp256k1 that referenced this pull request Sep 28, 2025
…orSwiftSharedSecret`

7fe89c488bfc8d2e4987ba17fd7e13dcd3bb79ba Add byte accessors to `ElligatorSwiftSharedSecret` (Martin Habovstiak)

Pull request description:

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

  Closes #675

ACKs for top commit:
  apoelstra:
    ACK 7fe89c488bfc8d2e4987ba17fd7e13dcd3bb79ba

Tree-SHA512: 5ec457401c83423b180f7a6f28048f93040c39129050707b981d1c113e3daa85a37b3f848e61cd3230cc26db4a783e561b77e09b766fd8193d8f7bf187214091
william2332-limf added a commit to william2332-limf/rust-secp256k1 that referenced this pull request Oct 2, 2025
…orSwiftSharedSecret`

7fe89c488bfc8d2e4987ba17fd7e13dcd3bb79ba Add byte accessors to `ElligatorSwiftSharedSecret` (Martin Habovstiak)

Pull request description:

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

  Closes #675

ACKs for top commit:
  apoelstra:
    ACK 7fe89c488bfc8d2e4987ba17fd7e13dcd3bb79ba

Tree-SHA512: 5ec457401c83423b180f7a6f28048f93040c39129050707b981d1c113e3daa85a37b3f848e61cd3230cc26db4a783e561b77e09b766fd8193d8f7bf187214091
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