Skip to content

[Graphite MQ] Draft PR GROUP:spec_db2dd5 (PRs 887)#915

Closed
graphite-app[bot] wants to merge 1 commit intomainfrom
gtmq_spec_db2dd5_1756821824664-5fc70a88-2609-4863-b977-a0a76db8a1b7
Closed

[Graphite MQ] Draft PR GROUP:spec_db2dd5 (PRs 887)#915
graphite-app[bot] wants to merge 1 commit intomainfrom
gtmq_spec_db2dd5_1756821824664-5fc70a88-2609-4863-b977-a0a76db8a1b7

Conversation

@graphite-app
Copy link
Copy Markdown

@graphite-app graphite-app bot commented Sep 2, 2025

This draft PR was created by the Graphite merge queue.
Trunk will be fast forwarded to the HEAD of this PR when CI passes, and the original PRs will be closed.

The following PRs are included in this draft PR:

### TL;DR

Remove the `Canonical` associated type from the `TowerField` trait and related code. This fixes the unit tests that were not passing with GFNI enabled because `is_canonical` was returning a wrong value

### What changed?

- Removed the `Canonical` associated type from the `TowerField` trait
- Removed implementations of this associated type from all implementors of `TowerField`
- Removed the `is_canonical_tower` function and its usages
- Removed the tower-to-AES and AES-to-tower mapping constants that were used for conversions
- Removed the `linear_transform` function that was no longer needed
- Simplified the `invert_or_zero` implementation to only handle AES tower fields without conversion

### How to test?

- Run the existing test suite to ensure all functionality still works correctly
- Verify that code using binary fields still compiles and functions as expected
- Check that GFNI-based field operations still work correctly

### Why make this change?

This change simplifies the binary field implementation by removing the concept of "canonical" tower fields. The code previously supported conversions between different representations of tower fields, but this added complexity wasn't necessary. By removing this abstraction, the code becomes more straightforward and easier to maintain while preserving all required functionality.
@graphite-app graphite-app bot closed this Sep 2, 2025
@graphite-app graphite-app bot deleted the gtmq_spec_db2dd5_1756821824664-5fc70a88-2609-4863-b977-a0a76db8a1b7 branch September 2, 2025 14:11
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