These are chat archives for Nethereum/Nethereum
In VB though. :D but I think you just need to change the dims into var, add the semicolons.... etc. From there, you can use streamwriter to write the jsonstring
Dim KeyStoreService As New KeyStore.KeyStoreService Dim JSONstring As String = KeyStoreService.EncryptAndGenerateDefaultKeyStoreAsJson(password, account.PrivateKey.Substring(account.PrivateKey.Length - 64).HexToByteArray, account.Address) Dim filename As String = KeyStoreService.GenerateUTCFileName(account.Address)
This might help. :) in C#
Hmm. I basically pass in an account object so I could access the private key in byte format.
account = New Web3.Accounts.Account(privKey)
So the workflow will be like - Create a private key, initialise the account and store it as a JSON file. Or if I misunderstood you just let me know ya.
@VoR0220 I have pushed the early stage code in to master which includes a sample of event log processing. That should get you going quickly.
It's all very much a work in progress, the design is evolving. You may be best forking the existing code to avoid breaking changes.
Link to the samples below - focus on the "event log processing (excluding transactions)".
If you have any questions just ask!