serai/networks/ethereum/schnorr/contracts/tests/Schnorr.sol
2024-09-19 23:36:32 -07:00

14 lines
317 B
Solidity

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.26;
import "../Schnorr.sol";
contract TestSchnorr {
function verify(bytes32 public_key, bytes calldata message, bytes32 c, bytes32 s)
external
pure
returns (bool)
{
return Schnorr.verify(public_key, keccak256(message), c, s);
}
}