These are chat archives for Nethereum/Nethereum

12th
Jan 2018
Juan Blanco
@juanfranblanco
Jan 12 2018 04:04
Yes correct about System.Numerics
The issue with SSL is new
@CineTekDev_twitter well depends on how much you pay
abhishek
@triston_abhi_twitter
Jan 12 2018 05:11
@juanfranblanco
Thank you for this wonderful window application.
https://github.com/Nethereum/Nethereum.SimpleWindowsWallet
abhishek
@triston_abhi_twitter
Jan 12 2018 05:22

I want to perform below things

-- User will register on website.
-- After successfully register One ether address will be assign (This should provided from windows application. User don't have access to this windows application)
-- User can send ether from any address to assigned address (send ether can be done from 3rd party).
-- But as ether received to assigned address User can see updated balance on their account.
-- Also user can send ether
I want all backed task handled by windows application.

My main question is I have to sync whole ether blockchain?
If yes then how I can manage receive ether functionality means how I know that ether address balance was updated.

Can I perform above tasks via infura.io?
If yes then how?

I know Send transaction can be done via both way but for receive bitcoin I am still confuse.

Juan Blanco
@juanfranblanco
Jan 12 2018 09:10
@triston_abhi_twitter to receive bitcoin.. wrong gitter ;)
do you need to sync the blockchain? You could get away with infura by reading all blocks / transactions. Or have a "local / server" installation and use things like parity filters
After successfully register One ether address will be assign (This should provided from windows application. User don't have access to this windows application)
is that a windows application server? I pressume
similar to
so it mainly you are creating a rest api / web service to generate addresses and provide them with ether
Juan Blanco
@juanfranblanco
Jan 12 2018 09:15
@Art1987 a very quick guide on the code.
  1. Addresses need to be created on the array in ascending order
(3. ) When submitting the transaction, each element of the signature r,s, v etc gets added in order per address ascending order
(2. )You need to create a hash as per the solidity code and sign that message per each address
abhishek
@triston_abhi_twitter
Jan 12 2018 09:18
@triston_abhi_twitter to receive bitcoin.. wrong gitter ;)
I try to edit after some time but not able to edit :-)
Juan Blanco
@juanfranblanco
Jan 12 2018 09:19
:D
abhishek
@triston_abhi_twitter
Jan 12 2018 09:19
I don't want sync whole blockchain
So how I am able to understand that ether is credited on particular address
Juan Blanco
@juanfranblanco
Jan 12 2018 09:20
Well you are pretty stuck there, you need a explorer
link to etherscan
or have something like parity filters
which will mean having a full synced ethereum somewhere
abhishek
@triston_abhi_twitter
Jan 12 2018 09:27
So let's say I am connecting to infura.io.
Which has full synced ethereum
So how I am able to understand that ether credit on address?
Juan Blanco
@juanfranblanco
Jan 12 2018 10:05
well you can check per each block if a transaction belongs to an address
if you don't want to sync using infura
mainly monitoring each transaction
abhishek
@triston_abhi_twitter
Jan 12 2018 10:08
Is there any application or website provide this via Api or any way?
bankojan
@bankojan
Jan 12 2018 12:06
Hi. How can I connect to my "MyEtherWallet" account (wallet) and deploy contracts and call functions?
Juan Blanco
@juanfranblanco
Jan 12 2018 12:11
@triston_abhi_twitter etherscan
@bankojan
bankojan
@bankojan
Jan 12 2018 12:16

Yes, thanks for that. I already have some code but can't seem to get it working.
var account = Account.LoadFromKeyStore(json, pass); var web3 = new Web3Geth(account, "https://rinkeby.etherscan.io/address/<myaddress>");

But when I try and deploy a contract I get an error.

Juan Blanco
@juanfranblanco
Jan 12 2018 12:19
etherscan does not deploy
contracts is a explorer
bankojan
@bankojan
Jan 12 2018 12:20
Then what is the easiest way to deploy?
Juan Blanco
@juanfranblanco
Jan 12 2018 12:20
Infura
but you can easily get started with your own testnet
check the docs I sent
also you can use Truffle
bankojan
@bankojan
Jan 12 2018 12:21
OK, thanks.
bankojan
@bankojan
Jan 12 2018 12:30
I managed to get it working with Infura. Thanks for the help.
Juan Blanco
@juanfranblanco
Jan 12 2018 12:32
ah awesome :)
Mariano Conti
@nanexcool
Jan 12 2018 14:51
@juanfranblanco thanks for the tip! I tried that snippet and figured out the validation does contain an error, but it's not X509ChainStatusFlags.RevocationStatusUnknown, it's X509ChainStatusFlags.PartialChain. Now I don't know if this will cause issues, but I just added a check for that and letting it pass (for now). So Infura works :D Too bad they don't allow filters since I finally got new block filter working
hak
@hakart_twitter
Jan 12 2018 14:54
Hi Guys can anyone help me figure out how I should sign the transaction using S, R, V method
           var input  = "Transaction message goes here";
            var sha3 = new Nethereum.Util.Sha3Keccack();
            var transactionhash = "0x" + sha3.CalculateHashFromHex(input);
            var signer = new EthereumMessageSigner();
            var signature = signer.EncodeUTF8AndSign(transactionhash, new EthECKey(keyAddressPairs[0].Key));
            var sigRSV = EthereumMessageSigner.ExtractEcdsaSignature(signature);