Skip to content

Commit

Permalink
fix secp256r1-program id location (solana-labs#3663)
Browse files Browse the repository at this point in the history
fix secp256r1_program id location
  • Loading branch information
kevinheavey authored Nov 15, 2024
1 parent f9f9911 commit 46032b2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions programs/sbf/Cargo.lock

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

1 change: 0 additions & 1 deletion sdk/reserved-account-keys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ solana-frozen-abi-macro = { workspace = true, optional = true, features = [
] }
solana-pubkey = { workspace = true, default-features = false }
solana-sdk-ids = { workspace = true }
solana-secp256r1-program = { workspace = true }

[dev-dependencies]
solana-program = { path = "../program" }
Expand Down
5 changes: 2 additions & 3 deletions sdk/reserved-account-keys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ use {
solana_sdk_ids::{
address_lookup_table, bpf_loader, bpf_loader_deprecated, bpf_loader_upgradeable,
compute_budget, config, ed25519_program, feature, loader_v4, native_loader,
secp256k1_program, stake, system_program, sysvar, vote, zk_elgamal_proof_program,
zk_token_proof_program,
secp256k1_program, secp256r1_program, stake, system_program, sysvar, vote,
zk_elgamal_proof_program, zk_token_proof_program,
},
solana_secp256r1_program as secp256r1_program,
std::collections::{HashMap, HashSet},
};

Expand Down
4 changes: 4 additions & 0 deletions sdk/sdk-ids/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ pub mod secp256k1_program {
solana_pubkey::declare_id!("KeccakSecp256k11111111111111111111111111111");
}

pub mod secp256r1_program {
solana_pubkey::declare_id!("Secp256r1SigVerify1111111111111111111111111");
}

pub mod stake {
pub mod config {
solana_pubkey::declare_deprecated_id!("StakeConfig11111111111111111111111111111111");
Expand Down
2 changes: 1 addition & 1 deletion sdk/secp256r1-program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = { workspace = true }
bytemuck = { workspace = true, features = ["derive"] }
solana-feature-set = { workspace = true }
solana-precompile-error = { workspace = true }
solana-pubkey = { workspace = true }
solana-sdk-ids = { workspace = true }

[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "solana")))'.dependencies]
solana-instruction = { workspace = true, features = ["std"] }
Expand Down
3 changes: 1 addition & 2 deletions sdk/secp256r1-program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
//! This property can be problematic for developers who assume each signature is unique. Without enforcing
//! low-S values, the same message and key can produce two different valid signatures, potentially breaking
//! replay protection schemes that rely on signature uniqueness.
solana_pubkey::declare_id!("Secp256r1SigVerify1111111111111111111111111");

use bytemuck::{Pod, Zeroable};
pub use solana_sdk_ids::secp256r1_program::{check_id, id, ID};

#[derive(Default, Debug, Copy, Clone, Zeroable, Pod, Eq, PartialEq)]
#[repr(C)]
Expand Down
3 changes: 1 addition & 2 deletions svm/examples/Cargo.lock

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

0 comments on commit 46032b2

Please sign in to comment.