Exemplo n.º 1
0
        public override bool Verify(Span <byte> header, Span <byte> solution)
        {
            try
            {
                sem.Value.WaitOne();

                fixed(byte *h = header)
                {
                    fixed(byte *s = solution)
                    {
                        return(LibMultihash.equihash_verify_210_9(h, header.Length, s, solution.Length, personalization));
                    }
                }
            }

            finally
            {
                sem.Value.Release();
            }
        }