Skip to content

Commit e1078fc

Browse files
authored
Revert "feat: ed25519 & secp256k1 sig verification helper modules (solana-foundation#3952)" (solana-foundation#4203)
This reverts commit 83bb40c.
1 parent 062b970 commit e1078fc

File tree

15 files changed

+4
-720
lines changed

15 files changed

+4
-720
lines changed

.github/workflows/reusable-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,7 @@ jobs:
478478
path: tests/lazy-account
479479
- cmd: cd tests/test-instruction-validation && ./test.sh
480480
path: tests/test-instruction-validation
481-
- cmd: cd tests/signature-verification && anchor test
482-
path: tests/signature-verification
481+
483482
steps:
484483
- uses: actions/checkout@v3
485484
- uses: ./.github/actions/setup/

lang/src/error.rs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -172,31 +172,11 @@ pub enum ErrorCode {
172172
#[msg("A duplicate mutable account constraint was violated")]
173173
ConstraintDuplicateMutableAccount,
174174

175-
// Signature verification errors
176-
/// 2040 - Invalid Ed25519 program id for signature verification
177-
#[msg("Invalid Ed25519 program id for signature verification")]
178-
Ed25519InvalidProgram,
179-
/// 2041 - Invalid Secp256k1 program id for signature verification
180-
#[msg("Invalid Secp256k1 program id for signature verification")]
181-
Secp256k1InvalidProgram,
182-
/// 2042 - Instruction unexpectedly had account metas
183-
#[msg("Instruction unexpectedly had account metas")]
184-
InstructionHasAccounts,
185-
/// 2043 - Message length exceeds allowed maximum
186-
#[msg("Message length exceeds allowed maximum")]
187-
MessageTooLong,
188-
/// 2045 - Invalid Secp256k1 recovery id (must be 0 or 1)
189-
#[msg("Invalid Secp256k1 recovery id")]
190-
InvalidRecoveryId,
191-
/// 2047 - Signature verification failed
192-
#[msg("Signature verification failed")]
193-
SignatureVerificationFailed,
194-
195175
// Migration errors
196-
/// 2048 - Account is already migrated
176+
/// 2041 - Account is already migrated
197177
#[msg("Account is already migrated")]
198178
AccountAlreadyMigrated,
199-
/// 2049 - Account must be migrated before exiting
179+
/// 2042 - Account must be migrated before exiting
200180
#[msg("Account must be migrated before exiting")]
201181
AccountNotMigrated,
202182

lang/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub mod error;
4343
pub mod event;
4444
#[doc(hidden)]
4545
pub mod idl;
46-
pub mod signature_verification;
4746
pub mod system_program;
4847
mod vec;
4948

lang/src/signature_verification/ed25519.rs

Lines changed: 0 additions & 63 deletions
This file was deleted.

lang/src/signature_verification/mod.rs

Lines changed: 0 additions & 48 deletions
This file was deleted.

lang/src/signature_verification/secp256k1.rs

Lines changed: 0 additions & 68 deletions
This file was deleted.

tests/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
"multiple-suites",
5353
"multiple-suites-run-single",
5454
"bpf-upgradeable-state",
55-
"duplicate-mutable-accounts",
56-
"signature-verification"
55+
"duplicate-mutable-accounts"
5756
],
5857
"dependencies": {
5958
"@project-serum/common": "^0.0.1-beta.3",

tests/signature-verification/Anchor.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/signature-verification/Cargo.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/signature-verification/package.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)