Skip to content
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

Add Action Signing and Verification Utilities #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aremys
Copy link

@aremys aremys commented Nov 20, 2024

This commit introduces two new utilities to the Solana Actions SDK:

  1. Action Signing (signActionPayload):

Allows users to sign an action payload using their connected Solana wallet.

Ensures secure and verifiable communication between users and the SDK.

  1. Action Verification (verifySignedAction):

Verifies the authenticity of signed payloads by checking the signature against the wallet's public key.

Prevents tampering and ensures trust in action execution.

Additionally, an example usage file (exampleUsage.js) is included to demonstrate how these utilities can be seamlessly integrated with wallets like Phantom or Solflare.

This commit introduces two new utilities to the Solana Actions SDK:

1. Action Signing (signActionPayload):

Allows users to sign an action payload using their connected Solana wallet.

Ensures secure and verifiable communication between users and the SDK.

2. Action Verification (verifySignedAction):

Verifies the authenticity of signed payloads by checking the signature against the wallet's public key.

Prevents tampering and ensures trust in action execution.

Additionally, an example usage file (exampleUsage.js) is included to demonstrate how these utilities can be seamlessly integrated with wallets like Phantom or Solflare.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant