Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
3
votes
1
answer
400
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.to_seed(words)
keypair … = Keypair.from_bytes(seed)
print("Created Keypair with Public Key: {}".format(keypair.pubkey()))
When I generate a key pair I often get the error "ValueError: signature error: Cannot decompress Edwards …
3
votes
2
answers
396
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")
words = mnemo.generate … (strength=256)
seed = mnemo.to_seed(words)
keypair1 = Keypair.from_bytes(seed)
print("keypair1: {}".format(keypair1))
keypair2 = Keypair()
print("keypair2: {}".format(keypair2))
Output:
keypair1: 4pqdZVgkCaALGNqvumkcC9gH5ZRj13DupL9go2DfZMhX9c7Mi9cei9AySWHNdcaxf5cnpZ2yyHtc5dvqW9qof2LX …
1
vote
Why does a "bad format" error occur when importing a key into phantom app?
I changed the code and now the keys are created using the pybip39 library:
from pybip39 import Mnemonic, Seed
from solders.keypair import Keypair
mnemonic = Mnemonic()
passphrase = "42"
seed = Seed(mnemonic … , passphrase)
expected_keypair = Keypair.from_seed(bytes(seed)[:32])
keypair = Keypair.from_seed_phrase_and_passphrase(mnemonic.phrase, passphrase)
assert keypair.pubkey() == expected_keypair.pubkey() …
2
votes
1
answer
231
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 keypair = Keypair.fromSeed …