/// New items are added in this format:
/// hash_length_byte hash_bytes
/// </summary>
- /// <param name="hash">Hash160 instance</param>
- public void AddHash(Hash160 hash)
+ /// <param name="hash">uint160 instance</param>
+ public void AddHash(uint160 hash)
{
- codeBytes.Add((byte)hash.hashSize);
+ codeBytes.Add((byte)hash.Size);
codeBytes.AddRange((byte[])hash);
}
/// New items are added in this format:
/// hash_length_byte hash_bytes
/// </summary>
- /// <param name="hash">Hash256 instance</param>
- public void AddHash(Hash256 hash)
+ /// <param name="hash">uint256 instance</param>
+ public void AddHash(uint256 hash)
{
- codeBytes.Add((byte)hash.hashSize);
+ codeBytes.Add((byte)hash.Size);
codeBytes.AddRange((byte[])hash);
}
public CScriptID ScriptID
{
- get { return new CScriptID(Hash160.Compute160(codeBytes.ToArray())); }
+ get { return new CScriptID(CryptoUtils.ComputeHash160(codeBytes.ToArray())); }
}
/// <summary>