Skip to main content

Questions tagged [signing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

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

Relevant info... Source wallet: HcHQwif8dUB5MPg8miYsqw9YdoDmvpEZK7bnnUyyB5iG Source USDC token address: C62nBdh3tfE9bQTSqTe2tq4oEQqAMqSeWgFY4aJpiEjp Destination wallet: ...
wkl's user avatar
  • 103
1 vote
0 answers
99 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 ...
benjamin hon's user avatar
2 votes
3 answers
220 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.&...
Gregz's user avatar
  • 23
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 ...
PandaPanda's user avatar
2 votes
2 answers
678 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, ...
larry 8's user avatar
  • 43
0 votes
1 answer
112 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 ...
Fares_Hassen's user avatar
2 votes
1 answer
524 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. ...
bubu59's user avatar
  • 21
2 votes
1 answer
566 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 ...
cris.sol's user avatar
  • 272
1 vote
1 answer
28 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],...
Henry E's user avatar
  • 3,051
1 vote
0 answers
110 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 ...
Daag's user avatar
  • 21
1 vote
1 answer
541 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, ...
sensei's user avatar
  • 259
1 vote
0 answers
44 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, ...
DevelopingJoku's user avatar
3 votes
1 answer
239 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 ...
Mwkan's user avatar
  • 153
4 votes
1 answer
648 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 ...
Kurt's user avatar
  • 51
1 vote
1 answer
329 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, ...
maxwellfortney's user avatar
1 vote
1 answer
152 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 ...
Sing's user avatar
  • 111
6 votes
1 answer
154 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 ...
john's user avatar
  • 7,345
1 vote
1 answer
296 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 ...
Sasha Shpota's user avatar
2 votes
1 answer
656 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(...
Sasha Shpota's user avatar
2 votes
3 answers
84 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() ....
DevelopingJoku's user avatar