Skip to content

ed25519: store R and s components separately#595

Merged
tarcieri merged 1 commit intomasterfrom
ed25519/separate-R-and-s-components
Dec 9, 2022
Merged

ed25519: store R and s components separately#595
tarcieri merged 1 commit intomasterfrom
ed25519/separate-R-and-s-components

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Dec 9, 2022

Adds a ComponentBytes type alias for [u8; 32] and stores the R and s component signatures as separate byte arrays.

This allows for simple, infallible ComponentBytes accessors:

  • pub fn r_bytes(&self) -> &ComponentBytes
  • pub fn s_bytes(&self) -> &ComponentBytes

Adds a `ComponentBytes` type alias for `[u8; 32]` and stores the `R` and
`s` component signatures as separate byte arrays.

This allows for simple, infallible `ComponentBytes` accessors:

- `pub fn r_bytes(&self) -> &ComponentBytes`
- `pub fn s_bytes(&self) -> &ComponentBytes`
@tarcieri tarcieri merged commit 1c5124a into master Dec 9, 2022
@tarcieri tarcieri deleted the ed25519/separate-R-and-s-components branch December 9, 2022 22:50
@tarcieri tarcieri mentioned this pull request Jan 16, 2023
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.

1 participant