Skip to content

build(deps): bump solana-ed25519-program from 2.2.2 to 2.2.3 #6315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ solana-decode-error = "2.2.1"
solana-define-syscall = "2.3.0"
solana-derivation-path = "2.2.1"
solana-download-utils = { path = "download-utils", version = "=2.3.0" }
solana-ed25519-program = "2.2.2"
solana-ed25519-program = "2.2.3"
solana-entry = { path = "entry", version = "=2.3.0" }
solana-program-entrypoint = "2.2.1"
solana-epoch-info = "2.2.1"
Expand Down
7 changes: 5 additions & 2 deletions precompiles/benches/ed25519_instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ extern crate test;
use {
agave_feature_set::FeatureSet,
agave_precompiles::ed25519::verify,
ed25519_dalek::ed25519::signature::Signer,
rand0_7::{thread_rng, Rng},
solana_ed25519_program::new_ed25519_instruction,
solana_ed25519_program::new_ed25519_instruction_with_signature,
solana_instruction::Instruction,
test::Bencher,
};
Expand All @@ -20,7 +21,9 @@ fn create_test_instructions(message_length: u16) -> Vec<Instruction> {
let mut rng = thread_rng();
let privkey = ed25519_dalek::Keypair::generate(&mut rng);
let message: Vec<u8> = (0..message_length).map(|_| rng.gen_range(0, 255)).collect();
new_ed25519_instruction(&privkey, &message)
let signature = privkey.sign(&message).to_bytes();
let pubkey = privkey.public.to_bytes();
new_ed25519_instruction_with_signature(&message, &signature, &pubkey)
})
.collect()
}
Expand Down
11 changes: 8 additions & 3 deletions precompiles/src/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub mod tests {
hex,
rand0_7::{thread_rng, Rng},
solana_ed25519_program::{
new_ed25519_instruction, offsets_to_ed25519_instruction, DATA_START,
new_ed25519_instruction_with_signature, offsets_to_ed25519_instruction, DATA_START,
},
solana_instruction::Instruction,
std::vec,
Expand Down Expand Up @@ -341,7 +341,10 @@ pub mod tests {

let privkey = ed25519_dalek::Keypair::generate(&mut thread_rng());
let message_arr = b"hello";
let mut instruction = new_ed25519_instruction(&privkey, message_arr);
let signature = privkey.sign(message_arr).to_bytes();
let pubkey = privkey.public.to_bytes();
let mut instruction =
new_ed25519_instruction_with_signature(message_arr, &signature, &pubkey);
let feature_set = FeatureSet::all_enabled();

assert!(test_verify_with_alignment(
Expand Down Expand Up @@ -446,7 +449,9 @@ pub mod tests {
// sig created via ed25519_dalek: both pass
let privkey = ed25519_dalek::Keypair::generate(&mut thread_rng());
let message_arr = b"hello";
let instruction = new_ed25519_instruction(&privkey, message_arr);
let signature = privkey.sign(message_arr).to_bytes();
let pubkey = privkey.public.to_bytes();
let instruction = new_ed25519_instruction_with_signature(message_arr, &signature, &pubkey);

let feature_set = FeatureSet::default();
assert!(test_verify_with_alignment(
Expand Down
11 changes: 8 additions & 3 deletions programs/ed25519-tests/tests/process_transaction.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use {
assert_matches::assert_matches, solana_ed25519_program::new_ed25519_instruction,
assert_matches::assert_matches, ed25519_dalek::ed25519::signature::Signer as EdSigner,
solana_ed25519_program::new_ed25519_instruction_with_signature,
solana_instruction::error::InstructionError, solana_precompile_error::PrecompileError,
solana_program_test::*, solana_signer::Signer, solana_transaction::Transaction,
solana_transaction_error::TransactionError,
Expand Down Expand Up @@ -29,7 +30,9 @@ async fn test_success() {

let privkey = generate_keypair();
let message_arr = b"hello";
let instruction = new_ed25519_instruction(&privkey, message_arr);
let signature = privkey.sign(message_arr).to_bytes();
let pubkey = privkey.public.to_bytes();
let instruction = new_ed25519_instruction_with_signature(message_arr, &signature, &pubkey);

let transaction = Transaction::new_signed_with_payer(
&[instruction],
Expand All @@ -51,7 +54,9 @@ async fn test_failure() {

let privkey = generate_keypair();
let message_arr = b"hello";
let mut instruction = new_ed25519_instruction(&privkey, message_arr);
let signature = privkey.sign(message_arr).to_bytes();
let pubkey = privkey.public.to_bytes();
let mut instruction = new_ed25519_instruction_with_signature(message_arr, &signature, &pubkey);

instruction.data[0] += 1;

Expand Down
4 changes: 2 additions & 2 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use {
agave_transaction_view::static_account_keys_frame::MAX_STATIC_ACCOUNTS_PER_PACKET,
assert_matches::assert_matches,
crossbeam_channel::{bounded, unbounded},
ed25519_dalek::ed25519::signature::Signer as EdSigner,
itertools::Itertools,
rand::Rng,
rayon::{ThreadPool, ThreadPoolBuilder},
Expand Down Expand Up @@ -10342,7 +10343,13 @@ fn test_call_precomiled_program() {
ed25519_dalek::Keypair { secret, public }
};
let message_arr = b"hello";
let instruction = solana_ed25519_program::new_ed25519_instruction(&privkey, message_arr);
let signature = privkey.sign(message_arr).to_bytes();
let pubkey = privkey.public.to_bytes();
let instruction = solana_ed25519_program::new_ed25519_instruction_with_signature(
message_arr,
&signature,
&pubkey,
);
let tx = Transaction::new_signed_with_payer(
&[instruction],
Some(&mint_keypair.pubkey()),
Expand Down
4 changes: 2 additions & 2 deletions svm/examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions svm/src/message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ mod tests {
use {
super::*,
agave_reserved_account_keys::ReservedAccountKeys,
ed25519_dalek::ed25519::signature::Signer,
openssl::{
ec::{EcGroup, EcKey},
nid::Nid,
Expand All @@ -110,7 +111,7 @@ mod tests {
Account, AccountSharedData, ReadableAccount, WritableAccount,
DUMMY_INHERITABLE_ACCOUNT_FIELDS,
},
solana_ed25519_program::new_ed25519_instruction,
solana_ed25519_program::new_ed25519_instruction_with_signature,
solana_hash::Hash,
solana_instruction::{error::InstructionError, AccountMeta, Instruction},
solana_message::{AccountKeys, Message, SanitizedMessage},
Expand Down Expand Up @@ -603,7 +604,9 @@ mod tests {

fn ed25519_instruction_for_test() -> Instruction {
let secret_key = ed25519_dalek::Keypair::generate(&mut thread_rng());
new_ed25519_instruction(&secret_key, b"hello")
let signature = secret_key.sign(b"hello").to_bytes();
let pubkey = secret_key.public.to_bytes();
new_ed25519_instruction_with_signature(b"hello", &signature, &pubkey)
}

fn secp256r1_instruction_for_test() -> Instruction {
Expand Down
Loading