Skip to content

[smart_wallet] verify_ed25519() panics on verification failure instead of returning an error #898

Description

@Wilfred007

Description

verify_ed25519() panics when signature verification fails rather than returning a WalletError. For a multi-sig wallet, a failed signature check is an expected, recoverable outcome (e.g. wrong key, tampered payload) — not an exceptional condition that should abort the whole transaction with an opaque panic.

Where

contracts/smart_wallet/src/lib.rs (~line 283-291)

Acceptance Criteria

  • Replace the panic with a typed WalletError return
  • Add a test asserting a bad signature returns the typed error rather than panicking

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractSmart Contract developmentmediumModerate tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions