Skip to content

[CONTRACTS] Add integration test for execute with session key signature #680

@wheval

Description

@wheval

Summary

Test full execute path: session key signs canonical payload, contract accepts.

Background

Medium-effort, independently implementable task. Not part of Stellar Wave program tracking.

Scope

  • contracts/account/src/lib.rs

Files to create / modify

Add test_execute_session_key_end_to_end in test module.

Example implementation

let sig = sign_payload(&session_sk, &payload);
client.execute(&to, &fn, &args, &nonce, &Some(session_pk), &Some(sig));

Acceptance criteria

  • Happy path passes
  • Wrong signature rejected
  • Expired key rejected
  • Snapshot updated

Difficulty

Medium

Labels

enhancement, medium, contract, security

Metadata

Metadata

Assignees

Labels

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