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

@ -7,6 +7,13 @@ members = [
] ]
resolver = "2" 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] [workspace.dependencies]
bincode = "1" bincode = "1"
blst = "0.3.16" blst = "0.3.16"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
use { use {
crate::{ crate::{
Version,
encoding::{ 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}, blstrs::{G1Projective, G2Projective},
}; };

View file

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

View file

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

View file

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