CBidis_Viber_Net/Viber.Net/Contracts/IHashValidator.cs
namespace Viber.Net.Contracts
{
    /// <summary>
    /// Contract definition of Hash Validator
    /// </summary>
    public interface IHashValidator
    {
        /// <summary>
        /// validates signature with produces hash value
        /// </summary>
        /// <param name="value"></param>
        /// <param name="signature"></param>
        /// <param name="computedSignature">out param computed signature bytes from value bytes</param>
        /// <returns>true if valid, false otherwise</returns>
        bool IsValid(string signature, byte[] value, out byte[] computedSignature);
    }
}
