Questions tagged [keypair]

The tag has no usage guidance.

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

WSOL Account Keypairs

I created a WSOL token account so I don't have to be creating temporary token accounts every time I want to make a transaction. Thing is, I created that account using Python and the function that does ...
lsrth's user avatar
  • 21
2 votes
1 answer
88 views

When importing wallet by mnemonic phrase, how can I check whether it is correct or not?

For import wallet by mnemonic phrase i use next code: const seed = bip39.mnemonicToSeedSync(mnemonic_phrase, ""); const hd = HDKey.fromMasterSeed(seed.toString("hex")); const ...
Leo Loki's user avatar
  • 362
0 votes
0 answers
14 views

What happens to a mint account secret key after an NFT is created? [duplicate]

When you create a new traditional NFT, people generate a random keypair that gets used as the mint. This key signs the transaction so the account gets allocated on chain. Does the secret key for this ...
nickfrosty's user avatar
2 votes
1 answer
159 views

How do I create a keypair using a custom derivation path with Javascript?

I have a seed phrase that I used to generate an address with and sent tokens to it. I entered the seed phrase into Solflare wallet but it can't find the address with tokens on it. How do I create a ...
Raza's user avatar
  • 51
1 vote
1 answer
54 views

Error when importing secret key from .env

I am working through https://www.soldev.app/course/intro-to-cryptography and at the point where I am attempting to import the secret key from a .env I am getting an error: My keypair is set using: ...
GoodBurger03's user avatar
0 votes
2 answers
38 views

When to not use PDAs

I'm building a project that uses PDAs quite extensively. It seems to me that PDAs are very useful for almost every type of application (alternative for hash maps, storing user data etc) and not having ...
AceGravity's user avatar
1 vote
2 answers
234 views

How to convert Keypair.secret_key to Phantom compatible private key in python?

CODE keypair = Keypair.generate() key = keypair.secret_key This secret key isn't compatible in phantom wallet. I figured that the phantom private key can be converted to Keypair compatible secret key ...
aste123's user avatar
  • 141
0 votes
2 answers
39 views

Does program keypair has any other usage besides program deployment?

When we are doing program deployment on Solana using Anchor, it will read the key pair generated at target/deploy/<program>-keypair.json and use it to sign the instruction for initial deployment....
johnhckuo's user avatar
  • 135
0 votes
1 answer
38 views

In the basic Solana network, which parties have access to which data?

When trying to reason about whether SOL transactions provide certain types of privacy, it would be very helpful to have a complete list of the information accessible to each party in the basic (...
SapereAude's user avatar
0 votes
1 answer
41 views

Assuming confidential transactions, is the use of a different public key for each Solana transaction a reasonable way to achieve anonymity?

In the field of cryptocurrency design, there is a critical question of whether we can build, or have already built, a cryptocurrency that both (1) is highly efficient at scale (i.e., capable of ...
SapereAude's user avatar
3 votes
1 answer
542 views

How do you generate a base58 private key?

I know how to generate a keypair that has the uint8Array private key and generate a mnemonic, but how do you generate a base58 private key?
Jacob Creech's user avatar
  • 3,439
1 vote
1 answer
512 views

Deriving a public key from a private key programmatically

I'm stuck between a rock and a hard place right now. I'm developing an app with react native, and users need to be able to import their wallets via their private keys (and hopefully mnemonic phrases) ...
Morgandril's user avatar
2 votes
1 answer
24 views

Can another wallet pay for, Sign and Send transaction signature of another Keypair

if i create a custom instruction that requires a Keypair can another Keypair or client wallet sign or pay the transaction fees of said instruction please also explain how such things work.
Alex's user avatar
  • 51
0 votes
0 answers
19 views

What is json keypair file after 'cargo build-bpf'?

I understand if it is for pubkey only. but keypair is meaning pubkey and privatekey both. what is purpose of this file?
nokdoo's user avatar
  • 1
2 votes
1 answer
225 views

ValueError: signature error: Cannot decompress Edwards point

I use example in docs solana for python from solders.keypair import Keypair from mnemonic import Mnemonic mnemo = Mnemonic("english") words = mnemo.generate(strength=256) seed = mnemo....
Leo Loki's user avatar
  • 362
3 votes
2 answers
130 views

Why does a "bad format" error occur when importing a key into phantom app?

I use example in docs solana for python I try get key pair and import to phantom by private key: from solders.keypair import Keypair from mnemonic import Mnemonic mnemo = Mnemonic("english")...
Leo Loki's user avatar
  • 362
1 vote
1 answer
743 views

How to get public and secret key from keypair Solders

Sorry if this is a really basic question but I am new to this. I am using Solders for python to generate Solana wallets and transactions. https://kevinheavey.github.io/solders/api_reference/keypair....
Ryan Thomas's user avatar
3 votes
2 answers
659 views

Keypair.generate() vs creating keypair with solana-keygen?

I see two ways of generating Keypair. the easiest one is import { Keypair } from "@solana/web3.js"; const randomKey = Keypair.generate(); I see the other way which needs more work to do. ...
Yilmaz's user avatar
  • 1,071
1 vote
1 answer
62 views

How to retrieve a FileSystem Wallet in a .ts file

I am new to learning Solana development. Is there any way to retrieve the keypair from a Filesystem path? I am doing a tutorial and I want to use the same keypair to sign transactions, instead of ...
LAUR_NASA's user avatar
  • 173
4 votes
1 answer
582 views

How do off-curve public keys work?

I'm trying to retrieve an associated token address, and found this random vanity wallet while looking through solscan. From running the code below, here are the results. Expected token address: ...
Lifok's user avatar
  • 43
1 vote
2 answers
612 views

Creating a Custom Vanity Key / Wallet

I recently tried to create a paper wallet following the command below; solana-keygen grind --starts-with kiz:1 --use-mnemonic --word-count 24 --language english --no-outfile --no-bip39-passphrase The ...
kiz's user avatar
  • 21
1 vote
0 answers
98 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&...
Helix Development's user avatar
1 vote
0 answers
42 views

Is it possible that a duplicate keypair can be created and used?

Solana_sdk::signature::Keypair is used to create the account address, this method is being used by everyone across the world and then the client program submit to the cluster. So my question is, could ...
Souvagya's user avatar
  • 131
1 vote
0 answers
30 views

Ledger Nano X causing error when running sugar PLEASE HELP very Aggravating!

i keep getting this errror ive used sugaR BEFOR BUT NOT WITH A HARDWAQRE WALLET If anyone can hellp me out that would be awesome? error under arrow | | \ / v Error running command (re-run needed): ...
Patrick Keene's user avatar
2 votes
1 answer
64 views

How should generate account keys be treated?

If an account is not generated via PDA and is instead created as a new keypair, how should this new keypair be treated? Is it important to custody this somewhere secure? https://github.com/coral-xyz/...
AceGravity's user avatar
2 votes
1 answer
349 views

How I can create a wallet from keypair in frontend?

I want to sign some view transactions in frontend using a random keypair instead of wallet provider like phantom or solflare to avoid Approve popup I tried to create wallet like this: import { Wallet ...
Mahesh Ghamaand's user avatar
1 vote
0 answers
27 views

Solana "delegate-stake" fails on devnet

When trying delegate stake using: solana delegate-stake \ --fee-payer ~/staker-wallet-keypair.json \ --stake-authority ~/staker-wallet-keypair.json \ <STAKE_ACCOUNT_PUBKEY> <...
MusicMan's user avatar
5 votes
3 answers
3k views

Splitting a Solana Keypair into Public and Private Keys

I have the JSON file containing the keypair which has an array containing 64 values: $ cat ~/my-solana-wallet/demo.json [4,182,130,247,119,117,227,207,112,73,170,126,222,197,244,99,215,107,255,202,33,...
Rajat's user avatar
  • 127
0 votes
1 answer
286 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 ...
Meczka's user avatar
  • 1
1 vote
1 answer
537 views

Verify public and private key combination

If we have both a wallet address and private key, what is the best way to determine if the private key is indeed corresponding to the wallet address using a NodeJS server. Is the best way to sign a ...
Tomvkgames's user avatar
1 vote
1 answer
302 views

How can I generate a new wallet based off of a seed phrase

I see wallets like phantom and solflare pop up with a list of accounts when you import a seed phrase. How does that work? How can you find all of those through code? Can you generate new ones? Also if ...
Pixeled's user avatar
  • 441
1 vote
2 answers
43 views

Mainnet program deployment hygiene

Clearly having a single local keypair control mainnet program deployments is a horrible idea. Are there any well defined workflows to increasing security for deployments? Any handy multisig tools ...
Rohan Kapur's user avatar
1 vote
0 answers
39 views

Error Undefined is not an object (evaluating 'this.wallet.publicKey.toBuffer'), when using Metaplex with Bundlr

I am making a call to metaplex.nfts().uploadMetadata and using the keypairIdentity with a Solana id.json file. I believe this issue is in the Bundlr code but not sure why. Is anyone else using a ...
David Choi's user avatar
0 votes
0 answers
127 views

Error: Invalid arguments: authority not provided for transaction signed by keypair

I have a code that uses keypair from file to sign transactions. const payer = Keypair.fromSecretKey(BufferJs.from(keypair)); const wallet = new anchor.Wallet(payer); //// //// const tx = ...
agentp's user avatar
  • 235
4 votes
1 answer
104 views

Are wallet addresses "created" or are they "discovered"?

As I experiment and learn, I realized something that I wanted to confirm. It seems as though the network doesn't need to register the existence of a wallet in any way for it to become active and ...
OCDev's user avatar
  • 712
1 vote
1 answer
170 views

how can I read a keypair from a json file that contains many objects?

My json file looks like { "keypairs": { "keypair1":[12345678], "keypair2":[12345678], "keypair3":[12345678], } } where [12345678] is ...
coco's user avatar
  • 53
0 votes
2 answers
495 views

Converting a generated keypair into a base58 or seed phrase?

I did the following in my html file in the chrome console. After I get the following public and private keypair. How do I convert it into a base58 or seed phrase? The docs below don't state how to go ...
Patoshi パトシ's user avatar
9 votes
2 answers
167 views

How to bypass wallet approval and use the keypair on backend?

OK, Im trying to make transactions on backend(Nodejs). I want to make transactions that are made on the backend and want to store there as well(This parts easy). I just want to make sure, Because I ...
Syed Murtaza Ali Shah's user avatar
2 votes
1 answer
257 views

Can one solana keypair have multiple addresses?

I am trying to build an exchange which would work in a such a way that the funds are stored in an address for certain limit and once that limit is crossed, the address is changed but the signer for ...
AjA's user avatar
  • 43
4 votes
1 answer
39 views

Is there a rust crate for generating solana keypairs?

I'm looking for a lean rust crate to programatically generate Solana key pairs. Something like solana-keygen but as a library.
adamdelsol's user avatar
0 votes
1 answer
879 views

How to create a Keypair json in solana.py?

I'm attempting to create a keypair json I can save to my directory in solana.py that I can use on a local Solana test validator. Unsure if there's any built-in functions within solana.py to do so, I ...
Steven Cloud's user avatar
4 votes
1 answer
89 views

Does Solana have an official Python implementation?

I wonder if Solana has an "official" Python implementation; specially for Keypairs, or everyone is just using this repo: https://github.com/michaelhly/solana-py/blob/master/src/solana/...
Alex Ramirez's user avatar
1 vote
1 answer
664 views

How do I sign a message with my keypair

I want to prove i'm the owner of a certain wallet. (Assuming) I am technically inept - what is the easiest way to sign a custom message with my keypair and pass a public key to a recipient for ...
Ashwin Sekar's user avatar
2 votes
1 answer
1k views

How do I import and export a wallet keypair generated from CLI to a wallet provider like phantom or solflare?

How to Import and Export Wallets between CLI and Wallet providers? How do I export my wallet keypair generated from the Solana CLI and import it into a wallet like phantom or solflare? And how to ...
DonnySolana's user avatar
5 votes
2 answers
556 views

How to restore multiple keypairs from a mnemonic phrase using python?

solana-keygen recover 'prompt:?key=0/0' const mnemonic = "neither lonely flavor argue grass remind eye tag avocado spot unusual intact"; const seed = bip39.mnemonicToSeedSync(mnemonic, &...
user avatar