the.rt.mill
2 months ago  Karma: 40
Verify hashes between Unity client (C#) and Loom DAppChain contract (Solidity)

I want to use NuGet packages like SHA3 or SHA3.Net to generate hashes that will match keccak256 in Solidity, unless there is a better way. Otherwise, is there a profound disadvantage to using SHA256 for both? Total n00b tryna sniff out snippets to learn from and fit together - any working code and explanation on this would help a great deal!

en
#solidity
keccak
sha3
#Unity
the.rt.mill
2 months ago  Karma: 40
Verify hashes between Unity client (C#) and Loom DAppChain contract (Solidity)

I want to use NuGet packages like SHA3 or SHA3.Net to generate hashes that will match keccak256 in Solidity, unless there is a better way. Otherwise, is there a profound disadvantage to using SHA256 for both? Total n00b tryna sniff out snippets to learn from and fit together - any working code and explanation on this would help a great deal!

en
#solidity
keccak
sha3
#Unity

ONE ANSWER
adamskrodzki
2 months ago Karma: 946

I'm not sure what do You want to achieve And where is a problem

One approach You may make Smart contract with view function that will compute hash for You without transaction

You may make hashes match, but You will need to be careful with things like encoding.

Have You heard about Nethereum?
https://nethereum.com/ You can use it to compute hashes, signing and stuff

I'm not sure what do You want to achieve And where is a problem

One approach You may make Smart contract with view function that will compute hash for You without transaction

You may make hashes match, but You will need to be careful with things like encoding.

Have You heard about Nethereum?
https://nethereum.com/ You can use it to compute hashes, signing and stuff

the.rt.mill

Thanks! I don't know hardly anything is all, and tryna fake my way up to knowing more. I'll study Nethereum

Jan 15 '19 at 11:30 pm
Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER