Questions tagged [signature]
The signature tag has no usage guidance.
59
questions
0
votes
2
answers
62
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
18
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
33
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
59
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 (...
1
vote
1
answer
19
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/...
1
vote
1
answer
44
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 ...
0
votes
0
answers
84
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....
2
votes
1
answer
283
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
231
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;
...
0
votes
2
answers
73
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
154
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
95
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
54
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
51
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, ...
2
votes
1
answer
40
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
60
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
95
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
107
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 ...
3
votes
1
answer
74
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
49
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
219
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
191
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
73
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
66
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
25
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[...
3
votes
2
answers
131
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
25
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
49
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 ...
0
votes
0
answers
27
views
signature verification failed anchor Rust
const getCollection = async () => {
const provider = getProvider();
const program = new Program(idl, programId, provider);
const [collectionPDA, _] = await web3.PublicKey.findProgramAddress(
[
...
1
vote
1
answer
47
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
0
answers
57
views
"Signature verification failed" error MagicEden API
Im trying to use 'buy_now' instructions, but i receive: 'Signature verification failed'
'https://api-mainnet.magiceden.dev/v2/instructions/buy_now', {
params: {
buyer: wallet,
...
0
votes
1
answer
92
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 ...
0
votes
0
answers
31
views
Signature verfication failure when creating PDA with using NFT mint as seed
I have a program where I save a high score in a PDA and use the mint of the NFT as seed.
For some weird reason some of my NFTs don't work and I get a Signature Verfication error.
This one works: https:...
2
votes
1
answer
43
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
0
answers
18
views
Invocation with unauthorized signer On Anchor Solana
I'm trying to sign a transaction manually with the anchor framework.
The following is the normal and currently working method to call the program:
await program.value.rpc.sendTweet(topic, content, {
...
0
votes
2
answers
68
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
0
answers
13
views
Retrieving transactions for certain wallet without duplicating
trying to understand how to retrieve txs from certain wallet without duplicating. For example, I'm using GetSignaturesForAddress method to get last 10 tx and then calling GetTransaction method to ...
0
votes
1
answer
149
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
409
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
22
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 ...
5
votes
2
answers
244
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
47
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, ...
0
votes
0
answers
12
views
Uncaught SodiumException: Wallet address must be CRYPTO_SIGN_PUBLICKEYBYTES long
I'm using Phantom to sign a signature and using my backend to verify the signature.
I understand from here that Ed25519 is the signature system used on Solana. So, I'm using this library.
I'm using ...
4
votes
1
answer
43
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
96
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 ...
0
votes
0
answers
52
views
Different errors by mint new edition from master edition
I am trying to mint an edition from master edition token but I get some errors while send transaction.
Below, is the main code of my problem:
const tokenAccount = await ...
0
votes
1
answer
73
views
How to output signed message as a string from Phantom wallet
I'm following this code from Phantom doc.
const provider = getProvider();
const message = "To avoid digital dognappers, sign below to authenticate with CryptoCorgis";
const encodedMessage = ...
2
votes
1
answer
23
views
How do I integrate NFT uses?
I am developing a ticketing application. How can I make an NFT have a single use with the "uses" parameter, then when the user shows up to the event and verifies his ownership of the wallet ...
1
vote
1
answer
41
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
171
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(...