Пример #1
0
        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)));
        }
Пример #2
0
        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)));
        }