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

feat: Add universal signer to make multi-chain signatures easier #198

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

skambalin
Copy link
Contributor

  • Add new way of signing messages using multi-chain signer interface
  • Add support for new RPC method wallet_signMessage which allows signing messages for any Cere wallet accounts
const signerSolana = await wallet.getSigner({ type: 'solana' });
const signatureSolana = await signer.signMessage('Hello, world!');
   
console.log(signatureSolana);

const signerEvm = await wallet.getSigner({ type: 'ethereum' });
const signatureEvm = await signer.signMessage('Hello, world!');
   
console.log(signatureEvm);

@skambalin skambalin self-assigned this Jun 3, 2024
@skambalin skambalin force-pushed the feature/universal-sign-rpc-method branch from 69b6dd7 to a8dd157 Compare June 3, 2024 10:03
@skambalin skambalin merged commit 07d7e81 into dev Jun 3, 2024
2 checks passed
@skambalin skambalin deleted the feature/universal-sign-rpc-method branch June 3, 2024 11:16
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.

2 participants