Questions tagged [signature]
The signature tag has no usage guidance.
63
questions
0
votes
1
answer
38
views
How to store signatures in a pda and invoke an instruction with signatures
I want to create a program influenced by multisig structure.
There will be multiple types of instructions that require two parties to sign each transaction. Here's what I have in my mind:
There will ...
0
votes
1
answer
38
views
Error: Signature verification failed while initialising PDA
I've been working on Solana program that should hold two different tokens for me in a Vault in an ATA. The first token should be deposited during Vault initialisation, the second will be deposited by ...
1
vote
1
answer
36
views
How to sign a TX offline by Solana SDK? And then send it afterwards
I need to prepare in advance, for a month, a 100 of TXs signed in offline, for SOL and USDT, USDC.
In the documentation - offline transactions - it's described how to sign them via the cli utilities ...
1
vote
1
answer
44
views
Is it possible to remove signatures from a Transaction
I have a Transaction object which has three signatures. I want to remove one of them. Is that possible?
Since it's an array, I've tried using pop but that isn't updating it.
Any ideas on how I could ...
0
votes
1
answer
44
views
How to verify an ETH signature on Solana?
I am hoping to write a very simple program that accepts an ETH signature, ETH public key, and message --> determines if the signature is valid.
I found the following repo that looks to do what I ...
0
votes
1
answer
38
views
What is the compute cost for calling the native Ed25519 signature verification program?
I'm trying to measure the compute unit cost for my transaction which has 2 instructions:
{
ix0: native ed25519 sig verify (Ed25519SigVerify111111111111111111111111111)
ix1: myprogram.foobar
}
but ...
0
votes
1
answer
43
views
Getting different Buffers in Solana transactions. The front-end and back-end transactions are different
I have a Solana dApp that requests tokens from a wallet that I own. When the user try to claim the Tokens, one transaction is created on the frontend and signed by the user; the signature is coded and ...
1
vote
0
answers
36
views
Can we verify BLS signature in Solana Program.?
Is it feasible to verify the BLS signature in the Solana program. I am exploring the "blst" crate of rust as of now but it would be better if I am aware of the feasibility beforehand and ...
1
vote
1
answer
149
views
"Signature verification failed" error after signing transaction on the client using Phantom
I'm building a transaction on the server using Solnet:
var newTransaction = new Transaction();
newTransaction.RecentBlockHash = blockHash.Result.Value.Blockhash;
newTransaction.FeePayer = vaultAccount;...
0
votes
0
answers
56
views
NextJS doesn't build wallet instructions properly with Solita
I'm receiving the following error message when trying to send a transaction, using the Wallet Adapter in Nextjs 13, with a Solita generated SDK.
Backpack & Phantom:
WalletSendTransactionError: ...
0
votes
0
answers
43
views
i got this error: Signature verification failed
here is my program: https://beta.solpg.io/642c297867edfe0f00106a00
and here is my code:
const anchor = require('@project-serum/anchor')
const { web3 } = anchor
const { SystemProgram } = web3
const ...
0
votes
2
answers
298
views
Offline Transaction: Transaction signature verification failure?
we are recently been having some issues with our transactions on Solana.
We serialize the transaction, send it to the user, deserialize it, make the user sign, extract the signature, send back the ...
0
votes
1
answer
79
views
Can I verify RSA signatures inside of solana smart contract?
I want to check RSA signature inside of smart contract, is it possible?
2
votes
1
answer
63
views
Solana approve via signature
I wonder if there's a mechanism of transferring assets with receiver fee payment. Something like permit functions in solidity language?
Is it possible to copy this approach with PDAs? Share some ...
0
votes
0
answers
140
views
WalletSendTransactionError: Signature verification failed when minting NFT from Candy Machine
I am trying to add the capability for a user to be able to mint and NFT from a Candy Machine from the frontend of my website. I am running into this error when the user approves the mint transaction (...
2
votes
1
answer
41
views
Using getSignatureStatuses to confirm transaction
I'm using a niche language that doesn't have an existing solana library, thus needing to write my own transaction confirmation logic.
This github issue documents what the new approach for both the ts/...
2
votes
1
answer
448
views
How to properly "wait" for a transaction to confirm?
What I have tried
I've previously used the @web3/solana npm package, but ended up having to create my own (private) library due to using a niche language.
Here is what I'm trying to do:
Serialize and ...
2
votes
2
answers
211
views
Error: Signature verification failed while mint NFT
I created a candymachine v3 with sugar and I am trying to mit using the following code:
const { nft } = await metaplex.candyMachines().mint({
candyMachine,
collectionUpdateAuthority: candyMachine....
3
votes
1
answer
711
views
Signature verification failed
I am trying to create a sign in transaction using the following code (using react wallet adapter):
const tx = new Transaction().add(
// create nonce account
SystemProgram....
3
votes
2
answers
612
views
Is there a way to estimate the transaction size?
Currently to get the size of a transaction I have to do the following
const tx = new Transaction().add(...)
const { blockhash } = await connection.getLatestBlockhash();
tx.recentBlockhash = blockhash;
...
2
votes
3
answers
260
views
Verify signature on smart contract
I want to make sure that my function in contract can only be called from just my client. So how can I generate signature and verify it in smart contract?
2
votes
1
answer
221
views
Where are the addresses of the sender and receiver in TX info?
In the data returned by https://docs.solana.com/developing/clients/jsonrpc-api#gettransaction
where are the addresses of the sender and receiver?
2
votes
1
answer
263
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
1
answer
127
views
How to initialize a PDA before the CPI call? other wise its giving me AccountOwnedByWrongProgram
I'm trying to do a CPI call to my main program, which is
#[derive(Accounts)]
pub struct RegisterClient<'info> {
#[account(mut)]
pub owner: Signer<'info>,
#[account(init, payer=...
3
votes
1
answer
94
views
how to get signer for the CPI?
Here's my solana program,
use my-rust-crate::do_cpi;
pub fn do_something(ctx:Context<DoSomething>) => Result<()>{
do_cpi(ctx);
}
so this my rust crate is where the CPI happens, ...
3
votes
1
answer
77
views
how can i do a CPI in a rust crate with signer from solana program?
What I want to do is use a rust crate in solana program. and a function of the rust crate will do a CPI to another program. how can I sign that CPI with the signer from the main program. Can i pass ...
1
vote
0
answers
127
views
how can I do versioned transaction with python_?
https://github.com/michaelhly/solana-py
I'm using this place, but I can't find how to do a versioned transaction. :(
0
votes
0
answers
254
views
missing signature for supplied pubkey
Hi Guys I need help when I am trying to check Solana balance or address getting error missing signature for supplied Pubkey:......
I tried doing Solana Config set -k
getting same error
4
votes
1
answer
331
views
Does a PDA have to be owned by its signer?
Typically, when one creates a PDA, both the signing program and the owning program are the same. You have an account owned by Program A, such that:
Only Program A can sign for this PDA, and
Only ...
4
votes
1
answer
172
views
Metaplex Create NFT Error: Transfer: `from` must not carry data
I'm trying to combine the instructions from the metaplex create nft builder with a sol transfer instruction. I got this far:
let useNewMint = Keypair.generate();
let localMeta = Metaplex.make(...
1
vote
0
answers
88
views
Metaplex Create NFT Signature Verification Error
This is the code I have:
const { Metaplex, keypairIdentity, bundlrStorage } = require("@metaplex-foundation/js");
const { Connection, clusterApiUrl, Keypair } = require("@solana/web3.js&...
1
vote
2
answers
482
views
How to Sign a Transaction with Multiple Signers
I have a transaction that uses 2 signers(the user and the Keypair from the backend). It signs from the Backend and returns a serialized transaction for the user to sign. However, I am getting this ...
1
vote
1
answer
322
views
Generate signature in the backend
I am building an app where I need to generate a message signed on the backend with NodeJS, something like window.solana.signMessage('hello').
I have the user's private key, I just need a signature to ...
1
vote
0
answers
97
views
solana-py simulate transaction without signatures
i am using the solana-py lib and tried to simulate a given transaction that is not signed. Although the simulate_transaction() call has the argument sig_verify with the default being False already, i ...
1
vote
2
answers
147
views
How far back in time do RPC nodes retain transaction history?
What's the average an RPC would keep all signatures for an Account stored?
0
votes
0
answers
37
views
How to reconstruct signature from R, s?
I'm implementing EddSA, and already generate verified R, s for signature.
However, when sending tx using js, the signature verification fails.
The way to generate signature from R, s:
sig = new byte[...
4
votes
3
answers
264
views
How to sign transaction with a generated keypair instead of provider in anchor?
I am currently working on "CreateAccount" test on solana, i am using provider and it automatically signs transactions so it is working but i want to test a new user so i want to create ...
1
vote
0
answers
36
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, ...
1
vote
2
answers
59
views
How to validate that partially signed transactions aren't malicious?
Taken from https://solanacookbook.com/references/offline-transactions.html#partial-sign-transaction
If Alice is the fee payer and has to sign the transaction, how does she know that Bob hasn't ...
1
vote
1
answer
85
views
How to store signatures in a Solana account
Is there a cleaner way to store signatures in an account?
I mean instead of storing the 88 characters as a String. For instance Publickeys are stored as 32 Bytes instead of their corresponding 44 ...
0
votes
1
answer
200
views
How to i sign message with Keypair in rust
How to sign some message(like phantom signature) having a Keypair? I've seen some javascript implementations but i couldn't find any rust one.
const provider = getProvider(); // see "Detecting ...
2
votes
1
answer
60
views
Who has the right to modify an account and who signs transactions?
I understand that in Solana, an account has an holder, which is the private key to the public key representing the account. An account also has anowner which is the program that is allowed to modify ...
0
votes
2
answers
70
views
Verify data actually came from a certain program
I'm fetching data from an on-chain program and want to be sure it's really coming from said program and not being manipulated via some man-in-the-middle attack or so. I know the public key of the on-...
0
votes
1
answer
266
views
Executing Magic Eden Buy: Error: Signature Verification Failed
I'm trying to make a buy on Magic Eden but when I try sendAndConfirmTransaction() I got:
Error: Signature Verification Failed
I am calling an API that sent me back the instruction for build the tx.
...
4
votes
1
answer
507
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
0
answers
25
views
Is it possible to make a multisig transaction, where each signature is made separately(on top of other signatures)?
I am trying to make a user sign a transaction on browser side, send the transaction to the backend, run some logic and then sign it with my wallet.
So the multisig process should run on different ...
6
votes
2
answers
591
views
Verify a ed25519 signature in Smart Contract
I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.
From ...
1
vote
1
answer
102
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, ...
4
votes
1
answer
67
views
How to convert a keypair to a wallet type? [duplicate]
I want to convert a keypair into a wallet type, So I can use that wallet to sign transactions on backend(Nodejs). How to do this ?
6
votes
1
answer
104
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 ...