Exemplo n.º 1
0
        bool CheckSig(ScriptStack stack, byte[] sigHash)
        {
            var publicKey = stack.PopPublicKey();
            var signature = stack.PopSignature();
            var result    = publicKey.Verify(sigHash, signature);

            return(result);
        }
Exemplo n.º 2
0
        IList <Signature> PopSignatures(ScriptStack stack, BigInteger count)
        {
            var signatures = new List <Signature>();

            while (count-- > 0)
            {
                signatures.Add(stack.PopSignature());
            }

            return(signatures);
        }