Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 1, 2023

Extracts a trait to be impl'd on Curve::Uint which provides curve-specific rules for how field elements should be encoded as bytes.

These rules include both endianness and how to pad/truncate bytes to match the size of the integer (which may be larger than the size of the field modulus, to be a multiple of the limb size)

Extracts a trait to be impl'd on `Curve::Uint` which provides
curve-specific rules for how field elements should be encoded as bytes.

These rules include both endianness and how to pad/truncate bytes to
match the size of the integer (which may be larger than the size of the
field modulus, to be a multiple of the limb size)
@tarcieri tarcieri merged commit 3f03b40 into master Feb 1, 2023
@tarcieri tarcieri deleted the elliptic-curve/field-bytes-encoding-trait branch February 1, 2023 02:44
@tarcieri tarcieri mentioned this pull request Mar 1, 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.

2 participants