mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
feat: Assumption helpers added
This commit is contained in:
11
test/foundry/helpers/AssumptionHelpers.sol
Normal file
11
test/foundry/helpers/AssumptionHelpers.sol
Normal file
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: UNLICENSED
|
||||
pragma solidity ^0.8.13;
|
||||
|
||||
contract AssumptionHelpers {
|
||||
uint256 constant ISSECP256K1_CURVE_ORDER =
|
||||
115792089237316195423570985008687907852837564279074904382605163141518161494337;
|
||||
|
||||
function _isValidPk(uint256 pkCandidate) internal pure returns (bool) {
|
||||
return pkCandidate > 0 && pkCandidate < ISSECP256K1_CURVE_ORDER;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user