I am trying to create some sort of system in high level language (like C#) to recover a wallet password. Also trying to authenticate from known password with wallet (to certify that wallet provided credentials are correct) Is there any possibility in tezos?
-
What do you mean by "recover wallet password"? Are you trying to enter something and have a tool spit out the password that was used? Are you referring to a password used to encrypt something like a keystore file, or a password used as an optional word at the end of a seed phrase?– Simon McLoughlin ♦Commented Apr 7, 2022 at 10:02
2 Answers
Not sure if this answers your question.
You can have a look at this Java SDK, it should be similar to C#
.
-
is there any method there in this java sdk for password confirmation/retrieval? this is mostly looks like a account creation related thing which i have also found in netezos Commented Apr 7, 2022 at 9:41
Answering the second part about confirming a wallet is correct (while waiting for an update on the first part, via comment). There is not any single function that can answer "is this wallet correct" for a user. This is not a Tezos thing, this is a blockchain thing. Any combination of valid seed words will produce a wallet, its up to the user to determine if that is the correct one. There are a few things you can do to help the user determine if what they are doing is correct
There are tools that generate Mnemonics (seed phrases), most commonly these tools have a method to validate that a mnemonic matches the spec. E.g. Here is one using the language Swift for iOS: https://github.com/keefertaylor/MnemonicKit (I don't know about Java or C#, but they should have "validate" methods). This can be used to let a user know if they are entering a valid Mnemonic
Display the TZ address. After they enter a Mnemonic, optional password, or upload a keystore file etc, whatever way your app will work. Present them with the generated TZ address. If they are importing a wallet they already own, most users will recognise the first/last few characters
Going a step further, after generating the TZ address you could fetch the account balance and display that along side the address. Be careful with this, and make sure you don't build something that could be abused by flooding a server with requests
-
My problem is to validate Wallet password is correct or not? Suppose i have a simple windows form utility which will take wallet email and password (or may be wallet public key address as well). i want to check whether this information is correct ornot using some high level language Commented Apr 7, 2022 at 12:09
-
1@KamranShahid wallets don't use email and password. Wallets use a seed phrase and there are 2 different types of passwords that are optional (mentioned in my comment on your question above). The process is, as i've mentioned in my answer, you ask the user for their information, you do some basic tests to see does that data match a spec, create a wallet from that data and show them the address. The user decides if its correct or not. I think you may need to download a bunch of wallet apps and use some websites to see how things work– Simon McLoughlin ♦Commented Apr 7, 2022 at 12:54
-
github.com/baking-bad/netezos/issues/49 it have detail regarding what i am trying Commented Apr 8, 2022 at 12:29
-
1@KamranShahid I think you've made a fundamental misunderstanding about how blockchain wallets work and what those email addresses were used for. The email address for ICO wallets was a 1 time only thing. Tezos didn't exist when people signed up for the ICO, so they couldn't be given normal wallets. They had to use some other system to send the coins to people, until the network existed. So they used email and did something special. Once the network was up and running, those people followed instructions with their email and got their coins, they were supposed to ...– Simon McLoughlin ♦Commented Apr 8, 2022 at 16:04
-
1@KamranShahid I have answered this exact question in my answer above. The only thing you can verify is if the seed phrase matches the spec– Simon McLoughlin ♦Commented Apr 11, 2022 at 8:42