Skip to main content

Questions tagged [signing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

sign an instruction on the frontend, another on the backend for the same transaction

i have a few questions: whats the best way to handle this do i create the txn on the backend, then let the frontend sign and send it? if so how? how can i partially sign the transaction on the backend,...
0 votes
1 answer
97 views

Correct usage of "spl-token transfer" with offline signing

Relevant info... Source wallet: HcHQwif8dUB5MPg8miYsqw9YdoDmvpEZK7bnnUyyB5iG Source USDC token address: C62nBdh3tfE9bQTSqTe2tq4oEQqAMqSeWgFY4aJpiEjp Destination wallet: ...
1 vote
0 answers
111 views

How is Sign In With Solana nonce used? Is it left to user to verify?

I am trying to implement SIWS using the instructions from https://github.com/phantom/sign-in-with-solana, so far it works. But its pretty vague, how the nonce is used, in the example the nonce is even ...
2 votes
3 answers
247 views

Anchor Program unable to sign a transfer with a PDA

I am working on an Anchor Solana program, and I've encountered an error that I'm having trouble resolving. The error is: "Cross-program invocation with unauthorized signer or writable account.&...
1 vote
0 answers
30 views

Sign with multiple PDAs in Anchor using .with_signers()

I want to create an Account using SOL contained in a PDA. For that I guess I need two signatures, the payer(master) that will pay for the CPI call and the rent, and the receiver(subordinate). How do I ...
2 votes
2 answers
694 views

Sign CPI as both a PDA and signer of TX

I am writing an anchor program where I want to sign a CPI as both a PDA from my program and the signer of the tx. I expect it would look something like this: CpiContext::new_with_signer( program, ...
0 votes
1 answer
117 views

sign and approve all transactions with connected ledger wallet

how can I make ledger approve/sign multiple transactions at once? I'm using Solana wallet adapter for the browser, and for ledger users, they have to approve each transaction even when invoking the ...
2 votes
3 answers
87 views

In an Anchor test script, how do I stop the default provider from signing a transaction?

How do I stop the provider from signing the following transaction? In the following, the default provider still signs the transaction, but I'd like it not to: await prog.methods .func() ....
2 votes
1 answer
554 views

WalletSignTransactionError: x.pubkey.toBase58 is not a function at SolflareWalletAdapter.signTransaction

Currently, I'm trying to create an associated token account using solana/wallet provider (solflare ). However, when I proceed to sign the transaction, it returns an error saying that it is unable to. ...
2 votes
1 answer
595 views

Sign multiple transactions at once by initializing an AccountLoader account in the first transaction and using this initialized account in the 2nd tx

I need to sign two transactions at once. The first one initialize an AccountLoader, and the second one uses this initialized AccountLoader, therefore the AccountLoader must be initialized once is ...
1 vote
0 answers
112 views

Receive Unknown?

When customers go to my NFT project to claim/buy an NFT, wallet shows "Receive Unknown" (image from phantom extension attached). What should I do to have the name of the NFT pop up on ...
3 votes
1 answer
246 views

Order of transaction Signing

Does the order of signers keys signing a transaction matter? While going through the versioned transaction source code, signer_keys and expected_signer_keys vectors are being compared and this throws ...
1 vote
1 answer
30 views

Why doesn't the lookup program sign invoked instructions with PDA seeds?

Seeing some magic happening in the new address-lookup-table program. Code permalink invoke_context.native_invoke( system_instruction::assign(&table_key, &crate::id()), &[table_key],...
1 vote
1 answer
570 views

How to send raw signed transaction with Solnet .net?

I use following .net core library to send signed transaction https://github.com/bmresearch/Solnet I send the encoded raw transaction from react app with web3.js, and accept the string on server side, ...
1 vote
0 answers
45 views

How to have a single transaction that enables a custom program to verify two partial offline signers?

I need a single transaction that allows a custom program to verify that two signers are who they say they are: signer1: create, sign, serialize transaction and send to signer2. signer2: deserialize, ...
4 votes
1 answer
672 views

How to properly partialSign a transaction? (Signature verification failed)

I'm trying bundle an OrcaSwap tx with another transaction. The thing is, I'm getting a "Signature verification failed" error when trying to serialize the transaction. My code goes something ...
1 vote
1 answer
160 views

Transfer SOL without end user to approve

My question is in the title, so my program can transfer SOL from a PDA to another user but the thing is, based on an event, I'd like to pay the winner, but the winner always has to approve (on the ...
1 vote
1 answer
350 views

How to recover publicKey from signature + known message?

I'm implementing a sign in with Solana, and i'm trying to recover the user's publicKey from their signature + the known message they signed. I know for Ethereum, ethers provides a method to do this, ...
6 votes
1 answer
158 views

Can someone explain why Anchor's ".signers([ ])" not does work with "sendTransaction" from useWallet()?

Including the newAccount Keypair as signer in the initialize instruction using the anchor format below results in a WalletSendTransactionError: Signature verification failed after approving from ...
1 vote
1 answer
325 views

How to convert a Phantom signature to string in order to pas it via API?

I have a signature from the Phantom wallet in the Uint8Array format which I receive in the following way. const encodedMessage = new TextEncoder().encode("sign me please"); const ...
2 votes
1 answer
701 views

How to verify a signature from the Phantom wallet?

I am able to sign a message on the client side using something like this: const encodedMessage = new TextEncoder().encode("some message"); const signedMessage = await provider.signMessage(...