-
Notifications
You must be signed in to change notification settings - Fork 92
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
Private key dependency #65
Comments
How to sign a transaction without a private key of the buyer? |
a tx = signatures + a message the main idea is that you compose the message and send to user for signing. when you compose the message, you don't need user's private key. you only need the pubkey. |
Thanks @yihau for the reply . sir in this above line Signer is of type.Account and we will not be able to use feepayer.publickey in the as it belongs to the common if i try to remove Signer I'm getting this error Also if i try to use different Singer failed to new a tx, err: add not necessary signatures, 7s6Ro1mBBmmKmP2QDT2zzuCMqS6AVCgBQi1mRnsjX4QG is not a signer as it is not a correct singer |
This is my code can you help me modifying this to make it work with only public key package main import (
) func main() { func main() {
} |
Can you please help with the above query |
any suggestion on the above issue? |
I think the steps are more like
|
so it seems private key is mandatory to sign a transaction? |
depends on which account you're using. if you are using a PDA, the account's signature doesn't be generated by a private key. feel free to open another issue to ask something about this sdk. |
https://github.com/portto/solana-go-sdk/blob/3379219af14a083038c96118c7d1d7daa7e21232/docs/_examples/nft/mint-a-nft-with-master-edition-v2/main.go#L21
Sir, I'm actually thinking of moving to production with mainnet config. But if I do so when the buyer(aka feePayer) has to mint then he has to provide is private key as per the code.. But no buyer will wish to provide/expose the private key .
My question is how can I mint an NFT without taking/using the private key of feePayer.
But usage of public key is fine
The text was updated successfully, but these errors were encountered: