コード例 #1
0
        public override bool Verify(byte[] message, IEnumerable <Address> addresses)
        {
            foreach (var address in addresses)
            {
                if (Ed25519.Verify(this.Bytes, message, address.PublicKey))
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #2
0
        public override bool Verify(byte[] message, IEnumerable <Address> addresses)
        {
            foreach (var address in addresses)
            {
                if (!address.IsUser)
                {
                    continue;
                }

                var pubKey = address.ToByteArray().Skip(2).ToArray();
                if (Ed25519.Verify(this.Bytes, message, pubKey))
                {
                    return(true);
                }
            }

            return(false);
        }