Add workspace.package information and do minor clean-up (#14)

* remove README.md in the syscall directory

* use workspace dependency in `bls12-381`

* add `workspace.package` information

* use 2021 edition for bls12-381

* inherit workspace.package for `ed25519-pokos`

* cargo fmt
This commit is contained in:
Sam Kim 2026-04-26 10:11:05 +09:00 committed by GitHub
parent cbee436037
commit 09198923bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 35 additions and 20 deletions

View file

@ -1,12 +1,19 @@
[workspace]
members = [
"curve25519/curve25519-cuda",
"curve25519/solana-ed25519",
"curve25519/solana-ed25519",
"experimental/ed25519-pokos",
"syscall/bls12-381-syscall",
]
resolver = "2"
[workspace.package]
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
repository = "https://github.com/anza-xyz/cryptography"
homepage = "https://anza.xyz/"
license = "Apache-2.0"
rust-version = "1.89.0" # solana platform-tools rust version
[workspace.dependencies]
bincode = "1"
blst = "0.3.16"

View file

@ -2,7 +2,10 @@
name = "solana-curve25519-cuda"
version = "0.1.0"
edition = "2024"
authors = ["Anza Cryptography Team"]
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
[dependencies]
curve25519.workspace = true

View file

@ -6,7 +6,7 @@ rust-version = "1.85.0"
authors = [
"Isis Lovecruft <isis@patternsinthevoid.net>",
"Henry de Valence <hdevalence@hdevalence.ca>",
"Anza Cryptography Team",
"Anza Maintainers <maintainers@anza.xyz>",
]
readme = "README.md"
license = "BSD-3-Clause"
@ -14,6 +14,8 @@ categories = ["cryptography", "no-std"]
keywords = ["cryptography", "crypto", "ristretto", "curve25519", "ristretto255"]
description = "A pure-Rust implementation of group operations on ristretto255 and Curve25519, with HEEA scalar decomposition (forked from curve25519-dalek)"
exclude = ["**/.gitignore", ".gitignore"]
repository = { workspace = true }
homepage = { workspace = true }
# Keep the Rust library name as "curve25519" so that all existing `use curve25519::…`
# references in doc-tests, dependent crates, and source files remain valid.

View file

@ -2,6 +2,10 @@
name = "ed25519-pokos"
version = "0.1.0"
edition = "2024"
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
[dependencies]
bincode.workspace = true

View file

@ -1 +0,0 @@
Will host syscall crates.

View file

@ -3,11 +3,11 @@ name = "solana-bls12-381-syscall"
description = "Solana BLS12-381 Syscall"
documentation = "https://docs.rs/solana-bls12-381-syscall"
version = "0.1.0"
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
repository = "https://github.com/anza-xyz/cryptography"
homepage = "https://anza.xyz/"
license = "Apache-2.0"
edition = "2024"
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = "2021"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@ -17,7 +17,7 @@ blst = { workspace = true }
blstrs = { workspace = true }
bytemuck = { workspace = true, features = ["min_const_generics"] }
bytemuck_derive = { workspace = true }
group = "0.13.0"
group = { workspace = true }
pairing = { workspace = true }
[dev-dependencies]

View file

@ -4,7 +4,7 @@ mod test_vectors;
use {
bytemuck::pod_read_unaligned,
criterion::{BenchmarkId, Criterion, criterion_group, criterion_main},
criterion::{criterion_group, criterion_main, BenchmarkId, Criterion},
solana_bls12_381_syscall::*,
test_vectors::*,
};

View file

@ -1,7 +1,7 @@
use {
crate::{
encoding::{swap_fq_endianness, swap_g2_c0_c1, Endianness, PodG1Point, PodG2Point},
Version,
encoding::{Endianness, PodG1Point, PodG2Point, swap_fq_endianness, swap_g2_c0_c1},
},
blstrs::{G1Projective, G2Projective},
};

View file

@ -1,10 +1,10 @@
use {
crate::{
Version,
encoding::{
Endianness, PodG1Compressed, PodG1Point, PodG2Compressed, PodG2Point,
swap_fq_endianness, swap_g2_c0_c1,
swap_fq_endianness, swap_g2_c0_c1, Endianness, PodG1Compressed, PodG1Point,
PodG2Compressed, PodG2Point,
},
Version,
},
blstrs::{G1Affine, G2Affine},
};

View file

@ -1,9 +1,9 @@
use {
crate::{
Version,
encoding::{
Endianness, PodG1Point, PodG2Point, PodScalar, swap_fq_endianness, swap_g2_c0_c1,
swap_fq_endianness, swap_g2_c0_c1, Endianness, PodG1Point, PodG2Point, PodScalar,
},
Version,
},
blstrs::{G1Projective, G2Projective},
};

View file

@ -2,8 +2,8 @@
use {
crate::{
encoding::{serialize_gt, Endianness, PodG1Point, PodG2Point, PodGtElement},
Version,
encoding::{Endianness, PodG1Point, PodG2Point, PodGtElement, serialize_gt},
},
blstrs::{Bls12, G1Affine, G2Prepared, Gt},
group::Group,

View file

@ -1,7 +1,7 @@
use {
crate::{
encoding::{swap_fq_endianness, swap_g2_c0_c1, Endianness, PodG1Point, PodG2Point},
Version,
encoding::{Endianness, PodG1Point, PodG2Point, swap_fq_endianness, swap_g2_c0_c1},
},
blstrs::{G1Projective, G2Projective},
group::prime::PrimeCurveAffine,

View file

@ -1,6 +1,6 @@
use crate::{
Version,
encoding::{Endianness, PodG1Point, PodG2Point},
Version,
};
/// Validates that a G1 point is on the curve and in the correct subgroup.