mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Dedicated crate for the Schnorr contract
This commit is contained in:
15
networks/ethereum/schnorr/contracts/tests/Schnorr.sol
Normal file
15
networks/ethereum/schnorr/contracts/tests/Schnorr.sol
Normal file
@@ -0,0 +1,15 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
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, message, c, s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user