mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-28 22:49:42 +00:00
7feb7aed22
Slightly more efficient.
14 lines
317 B
Solidity
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);
|
|
}
|
|
}
|