Skip to content

Recovering keypair from keystring #269

Answered by FrankC01
HadiDadjuy asked this question in Q&A
Discussion options

You must be logged in to vote

Where did the keystring come from as pysui supports 3 types:

The ~/.sui_config/sui.keystore , Depending on the key scheme, the first byte indicates the scheme:

0 = ED25519 followed by privkey bytes
1 = SECP256K1 followed by privkey bytes
2 = SECP256R1 followed by privkey bytes

or

from wallet that can generate a string with prefix "suiprivkey"

or a dict

                {
                    'wallet_key':'0x.....',                 # Wallet exported key hex string
                    'key_scheme': SignatureScheme.ED25519   # Must align with wallet_key type
                }

Can you create a throw away key and post in a reply?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@FrankC01
Comment options

Answer selected by HadiDadjuy
@HadiDadjuy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants