mirror of https://github.com/nucypher/nucypher.git
Hard-code UmbralParameter U as a constant in ChallengeOverseer
parent
c2e0157f3e
commit
a5eb1a1070
|
@ -11,6 +11,10 @@ import "./MinersEscrow.sol";
|
||||||
* @notice Challenges for NuCypher net characters
|
* @notice Challenges for NuCypher net characters
|
||||||
**/
|
**/
|
||||||
contract ChallengeOverseer {
|
contract ChallengeOverseer {
|
||||||
|
|
||||||
|
uint8 public constant UMBRAL_PARAMETER_U_SIGN = 0x02;
|
||||||
|
uint256 public constant UMBRAL_PARAMETER_U_XCOORD = 0x03c98795773ff1c241fc0b1cced85e80f8366581dda5c9452175ebd41385fa1f;
|
||||||
|
|
||||||
using UmbralDeserializer for bytes;
|
using UmbralDeserializer for bytes;
|
||||||
|
|
||||||
// TODO events
|
// TODO events
|
||||||
|
@ -156,9 +160,8 @@ contract ChallengeOverseer {
|
||||||
hashInput = abi.encodePacked(
|
hashInput = abi.encodePacked(
|
||||||
hashInput,
|
hashInput,
|
||||||
// Point U
|
// Point U
|
||||||
// TODO: MAKE SURE IT IS UPDATED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
bytes1(UMBRAL_PARAMETER_U_SIGN),
|
||||||
bytes1(0x02),
|
bytes32(UMBRAL_PARAMETER_U_XCOORD),
|
||||||
bytes32(0xef62d276f6f311573b29790b970f2c4b4e44637c0c45f0838ffdc9167a05b999),
|
|
||||||
// Point U1
|
// Point U1
|
||||||
_cFrag.proof.pointKFragCommitment.sign,
|
_cFrag.proof.pointKFragCommitment.sign,
|
||||||
_cFrag.proof.pointKFragCommitment.xCoord,
|
_cFrag.proof.pointKFragCommitment.xCoord,
|
||||||
|
|
Loading…
Reference in New Issue