Beispiel #1
0
        //TXID
        public Hash256 GetHash()
        {
            var msg  = GetMessage();
            var data = Helper_NEO.CalcHash256(msg);

            return(data);
        }
Beispiel #2
0
 public Witness(byte[] _invocationScript, byte[] _verificationScript, Hash160 _hash = null)
 {
     InvocationScript   = _invocationScript;
     VerificationScript = _verificationScript;
     if (_hash == null)
     {
         Hash = Helper_NEO.CalcHash160(VerificationScript);
     }
     else
     {
         Hash = _hash;
     }
 }