anza-xyz / anza-xyz/solana-sdk

[solana-bn254] Refactor out `solana-bn254` into `solana-bn254` and `solana-bn254-syscall`

Offen
#714 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @samkim-crypto Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
257
Forks
250
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
39

Beschreibung

#### Problem

Currently, the `solana-bn254` crate contains both:
- agave runtime functions: invoked by the agave client for the bn254 curve syscalls.
- on-chain program functions: invoked by on-chain Solana programs.

This makes the crate cluttered and harder to update. The on-chain program functions need frequent updates, while the agave runtime functions need infrequent updates. Every time we update the on-chain program functions, we must cut a new version of the `solana-bn254` crate. This then requires a version bump in the agave repo, which adds the overhead of double-checking for breaking changes.

#### Proposed Solution

Refactor out the agave runtime functions into a separate crate called `solana-bn254-syscall`, which can live in the `agave/cryptography` repo. The `solana-bn254` crate in the SDK should then only contain the on-chain program functions.

cc @LStan

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.