These are chat archives for Nethereum/Nethereum

21st
Feb 2018
BradenPorter
@BradenPorter
Feb 21 2018 02:20
Screenshot from 2018-02-20 20-57-16.png
In properties for each missing reference the path is blank but I can't input the path there, how can I add the paths in?
RevVivek
@RevVivek
Feb 21 2018 05:43
How to export the account Json file using nethereum package
RevVivek
@RevVivek
Feb 21 2018 05:51
?
Andres G. Aragoneses
@knocte
Feb 21 2018 06:29
@RevVivek KeyStoreService.EncryptAndGenerateDefaultKeyStoreAsJson
RevVivek
@RevVivek
Feb 21 2018 06:30
Thanks man I will see this.
Andres G. Aragoneses
@knocte
Feb 21 2018 06:31
(Nethereum.KeyStore namespace)
RevVivek
@RevVivek
Feb 21 2018 08:24
How do I sign the tranasaction using the nethereum
Andres G. Aragoneses
@knocte
Feb 21 2018 08:58
look for OfflineTransactionSigner in the docs
RevVivek
@RevVivek
Feb 21 2018 08:59
Well I got unknown account error
proBeejay141
@proBeejay141
Feb 21 2018 10:15
can anybody help me on how to integrate coin like bitcoin cash too, thanks
Juan Blanco
@juanfranblanco
Feb 21 2018 10:15
check NBitcoin
TarrahArshad
@TarrahArshad
Feb 21 2018 10:16
@juanfranblanco juan with NBitcoin we can generate address but we can't send btc
proBeejay141
@proBeejay141
Feb 21 2018 10:17
you know for nethereum, i will connect to public node, what will i connect to with NBitcoin?
Juan Blanco
@juanfranblanco
Feb 21 2018 10:18
proBeejay141
@proBeejay141
Feb 21 2018 10:18
i cna also use this https://github.com/GeorgeKimionis/BitcoinLib, but i dont know how...
Juan Blanco
@juanfranblanco
Feb 21 2018 10:21
in Nicolas introduction it also explains how to to connect to a public node
i know nothing about BitcoinLib but I will check it out
proBeejay141
@proBeejay141
Feb 21 2018 10:24
pls help me with BitcoinLib, i can use it with muiltiple coin easily, it what i need..thanks
Juan Blanco
@juanfranblanco
Feb 21 2018 10:25
well i cannot help you with a library I don't know
and this is for Nethereum
proBeejay141
@proBeejay141
Feb 21 2018 10:25
i understand, thanks
Juan Blanco
@juanfranblanco
Feb 21 2018 10:26
when eventually i create multiple coin dapp wallet connecting to all the evm based chains, then i might be of help :D
but i would alwasy consider to get started with Nbitcoin as Nicolas has been working with it for years
and it is rather robust
(not biased in any way, i just respect his work)
proBeejay141
@proBeejay141
Feb 21 2018 10:29
ok, thanks
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 10:50
Hi,Could you please suggest a best option to unlock ethereum accounts while connecting to Azure ethereum consortium network.?
Juan Blanco
@juanfranblanco
Feb 21 2018 11:35
the best thing is to use your own account
funded
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:02
Thanks for the response.I have created the ethereum accounts via ssh console and not via Nethereum. If I wanted to perform ethereum transactions(connecting to Azure consortium) using those accounts, how to go about it?
Juan Blanco
@juanfranblanco
Feb 21 2018 12:03
mainly i would not keep unlocked those accounts in the consortium as you would not know who is accessing it
just grab the keystore files
load them in nethereum
and use them to sign the transaction
each member of the consortium can do that with their own private keys
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:06
I was aware of that option as well.But while going through microsoft azure blockchain forums I found an information regarding storing the private keys in the key vault.hence I would like to know which would be a better option.
Juan Blanco
@juanfranblanco
Feb 21 2018 12:07
sure
that is the next problem, where do you store the private keys
and the key vault is a fantastic option
if you store a key there, you may not want to store the whole encrypted json file
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:10
Did you mean we need not store the UTC file?
Juan Blanco
@juanfranblanco
Feb 21 2018 12:11
storing just the private key in the Azure key vault is an option
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:13
we have to fetch the private key (using Nethereum api) from the keystore file and then store that alone.Is that correct?
Juan Blanco
@juanfranblanco
Feb 21 2018 12:13
"have to"
if you just want to store the private key in key vault yes
you will need to anyway to create an Account in Nethereum which will sign the transactions
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:15
Does that mean "loading keystore files in Nethereum" is less secure compared to keyvault?
Juan Blanco
@juanfranblanco
Feb 21 2018 12:15
you still need to retrieve the private key and sign it
the keyvault provides a secure storage
for the private key
you could keep it stored encrypted
for further security
but then you need to store somewhere else the password
at the end of the day the point of failure will be the account accessing the vault, store etc
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:17
Password used for encrypting?
Juan Blanco
@juanfranblanco
Feb 21 2018 12:17
yep
which is what the keystore file is
and encryption of your private key
with a password
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:18
yes ,got it
Juan Blanco
@juanfranblanco
Feb 21 2018 12:19
different options, just chose what you need
but if you are creating a poc at the moment (i guess you are)#
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:19
Just pondering over security
Juan Blanco
@juanfranblanco
Feb 21 2018 12:19
I would not worry much
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:20
yes poc
But its quite likely we require it in future
Juan Blanco
@juanfranblanco
Feb 21 2018 12:22
yes of course
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:26
Thanks a lot for your suggestions
Juan Blanco
@juanfranblanco
Feb 21 2018 12:27
np (architect hat, there is never a solution it always depends)
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:31
I was aware of both the options, but wanted to go for a better one,So I thought your suggestion would help and I wanted to ensure whether those are right to go ahead
Juan Blanco
@juanfranblanco
Feb 21 2018 12:32
well things might advance in the future
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:34
yes
Juan Blanco
@juanfranblanco
Feb 21 2018 12:34
but you will still have the usual points of failure
sumathyvenugopal
@sumathyvenugopal
Feb 21 2018 12:36
Point of failure would be there.But we could trace down quickly where it occurs ,I think
Juan Blanco
@juanfranblanco
Feb 21 2018 12:37
yes, at a consortium level the benefits of traceability of transactions
outweights any issue that may occur
RevVivek
@RevVivek
Feb 21 2018 12:49

Hey I got this error while exporting the json

"Private key should be 32 bytes"

Any comment on this
RevVivek
@RevVivek
Feb 21 2018 13:22
No problem
I am done
pcapozzi
@pcapozzi
Feb 21 2018 15:17
Hi. What is the best way to get a working version in VS 2017. I tried to clone the repository but it does not compile as the android project can't find the android.jar
Juan Blanco
@juanfranblanco
Feb 21 2018 17:28
?? The android project cannot find the android.jar
@pcapozzi try nuget