These are chat archives for Nethereum/Nethereum

15th
Jun 2016
Juan Blanco
@juanfranblanco
Jun 15 2016 06:09
ToHex?
Nethereum.Hex.HexConvertors.Extensions
rickzanux
@rickzanux
Jun 15 2016 07:09
just to explain
Nethereum.ABI.Util.Sha3Keccack cryptoFunction = new Nethereum.ABI.Util.Sha3Keccack();
var ghc = cryptoFunction.GetHashCode();
var fullHashField = cryptoFunction.CalculateHash("zzzzzzz");
fullHashFields is 64bytes long. but when I call a solidity contract the has are 32 bytes long..
rickzanux
@rickzanux
Jun 15 2016 16:33
ok. i sue thtto transforn in Bytes32 but again the call to transaction give me error. var newHash = Nethereum.Hex.HexConvertors.Extensions.HexByteConvertorExtensions.HexToByteArray(hashInput);
rickzanux
@rickzanux
Jun 15 2016 17:17
and using newHash as parameter when solidity expect bytes32 give me an error
of course newHash is byte[32] in c# but how can put in string, good for solidity?