These are chat archives for Nethereum/Nethereum

7th
Jun 2017
akopeliovich
@akopeliovich
Jun 07 2017 10:06
Hello! I want to use method parity_newAccountFromSecret to create new account. Is there possibility in nethereum? How can I create private/public key via nethereum?
om
@omkarkhair
Jun 07 2017 10:17
@akopeliovich while @juanfranblanco can comment on this better, I have been using JSON RPC endpoints to create an account. Web3.Personal.NewAccount.SendRequestAsync
akopeliovich
@akopeliovich
Jun 07 2017 10:19
I used to use it but now I have to create new account form secret key
om
@omkarkhair
Jun 07 2017 10:21
@akopeliovich can you then use Web3.Eth.Transactions.SendRawTransaction as you can sign the transaction using your secret. This would mean your RPC node does not store the account.
akopeliovich
@akopeliovich
Jun 07 2017 10:27
But before using SendRawTransaction I have to create account
om
@omkarkhair
Jun 07 2017 10:34
Aah! My bad, I misunderstood your question. Last I checked with @juanfranblanco account creation was in the works.
@akopeliovich ^
depending of what framework version you are using you can load the file directly or in a more portable mode use something specific (ie xamarin in ios)
om
@omkarkhair
Jun 07 2017 11:57
Oh wow!
Thanks @juanfranblanco :)
Juan Blanco
@juanfranblanco
Jun 07 2017 11:59
private key generation uses SecureRandom. but obviously you can generate your own private keys