What algorithm is used to create wallets and key pairs

+1 vote
Dear Multichain team

 

1) What algorithm is used to generate wallets? Are the wallets provides by a third party?

2) How do I receive my private key to my own wallet?

3) once received, do I have to back it up or do you store it for me?

4) Do I need the private key every time I sign in or when do I use it?

4) I understand that once I send a transaction, I send it to the other nodes adress. Is the adress therefore the public key!
asked May 29, 2018 by Fabrice11

1 Answer

+1 vote
1. Every MultiChain node has built-in wallet, but you can store you keys in external wallet. When node is started for the first time, one private key is generated and stored in the wallet. ECDSA private keys are used by MultiChain.

2. You can generate new key using getnewaddress API call, This will create new public/private key pair and store it in your wallet

3. Private key obtained using getnewaddress is stored in the wallet (wallet.dat file). You can also import private key from another wallet using importprivkey and importwallet API calls. It is always recommended to back up wallet.dat - it is the only place private keys are stored.

You can also use external wallet for storing private keys - you can call createkeypairs API to generate key pairs not stored in the wallet and manage these keys by yourself.

4. If the private key required for signing transaction is found in the wallet, MultiChain will sign transaction automatically. If not - you should specify private key explicitly in signrawtransaction API.

5. Almost. Address is a function of public key. See https://www.multichain.com/developers/address-key-format/ for details
answered May 30, 2018 by Michael
...