public static Hash GetHash(this VotingRegisterInput votingItemInput, Address sponsorAddress) { var input = votingItemInput.Clone(); input.Options.Clear(); return(HashHelper.ConcatAndCompute(HashHelper.ComputeFrom(input), HashHelper.ComputeFrom(sponsorAddress))); }
public static Hash GetHash(this VotingRegisterInput votingItemInput, Address sponsorAddress) { var input = votingItemInput.Clone(); input.Options.Clear(); return(Hash.FromTwoHashes(Hash.FromMessage(input), Hash.FromMessage(sponsorAddress))); }