//TXID public Hash256 GetHash() { var msg = GetMessage(); var data = Helper_NEO.CalcHash256(msg); return(data); }
public Witness(byte[] _invocationScript, byte[] _verificationScript, Hash160 _hash = null) { InvocationScript = _invocationScript; VerificationScript = _verificationScript; if (_hash == null) { Hash = Helper_NEO.CalcHash160(VerificationScript); } else { Hash = _hash; } }