These are chat archives for Nethereum/Nethereum

1st
Aug 2016
Brendan
@brendan87
Aug 01 2016 02:29
Hi Juan! You are a legend! I'm trying to integrate your Bouncy Castle .NET code now for the offline transaction functionality
I noticed the signature verification is there which is awesome
Brendan
@brendan87
Aug 01 2016 02:36
Is there a way to check the signature on either a hex string transaction that has already been signed, or on a JSON format object with the signature fields filled - such as this:
var rawTx = [
'0x00',
'0x09184e72a000',
'0x2710',
'0x0000000000000000000000000000000000000000',
'0x00',
'0x7f7465737432000000000000000000000000000000000000000000000000000000600057',
'0x1c',
'0x5e1d3a76fbf824220eafc8c79ad578ad2b67d01b0c2425eb1f1347e8f50882ab',
'0x5bd428537f05f9830e93792f90ea6a3e2d1ee84952dd96edbae9f658f831ab13'
]
(the last 3 items in the array are v, r ,s)
Brendan
@brendan87
Aug 01 2016 03:53
Actually, I just noticed you can build a transaction using the RLP encoded and signed byte array
:)
Brendan
@brendan87
Aug 01 2016 04:13
        var NethTx = new Transaction(tx.HexToByteArray()); 
        var valid = NethTx.Key.Verify(NethTx.RawHash, NethTx.Signature);
        string address = NethTx.Key.GetPublicAddress();
look ok? From what I understand the "Key" field on the generated Transaction still exists for the above functions even when the private key is unknown
Brendan
@brendan87
Aug 01 2016 05:20
I've tested it all out and it looks good Juan - well done :)
Dylan McKendry
@dylanmckendry
Aug 01 2016 06:15
Hey Juan, thanks for the update!! No need for EdgeJs! Brendan loves it! When you get time could you run your BuildProjectFile and update the git submodules. We have added Nethereum as a submodule so we get the latest source using the portable version :)
Juan Blanco
@juanfranblanco
Aug 01 2016 11:28
oh.. you will need to add now the latest version of the JsonRPC.Client. it was embedded before due to lack of portable support
glad is working.. and you are correct that is the way to verify the signature and match the address
Juan Blanco
@juanfranblanco
Aug 01 2016 11:33
I will add some other helper methods to web3 for this
Juan Blanco
@juanfranblanco
Aug 01 2016 16:30
just seen your MKR pull, merged
also it will be good to verify if is LowKey I have added those to the web3 helper
@brendan87
Juan Blanco
@juanfranblanco
Aug 01 2016 16:40
also most of the MKR has been moved to StandardToken
Juan Blanco
@juanfranblanco
Aug 01 2016 18:44
Rc5 is out if you are using nuget
Nick Addison
@naddison36
Aug 01 2016 23:59
what's MKR?