Skip to content

Commit

Permalink
Move constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Nov 30, 2024
1 parent a250ee8 commit 3376fe4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/NitroValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ contract NitroValidator {
using LibNodePtr for NodePtr;

bytes32 public constant ATTESTATION_TBS_PREFIX = keccak256(hex"846a5369676e61747572653144a101382240");
bytes32 public constant ATTESTATION_DIGEST = keccak256("SHA384");

bytes32 public constant CERTIFICATE_KEY = keccak256(bytes("certificate"));
bytes32 public constant PUBLIC_KEY_KEY = keccak256(bytes("public_key"));
bytes32 public constant MODULE_ID_KEY = keccak256(bytes("module_id"));
Expand All @@ -25,9 +27,6 @@ contract NitroValidator {
bytes32 public constant NONCE_KEY = keccak256(bytes("nonce"));
bytes32 public constant PCRS_KEY = keccak256(bytes("pcrs"));

// attestation / certificate constants
bytes32 public constant ATTESTATION_DIGEST = keccak256("SHA384");

// ECDSA384 curve parameters (NIST P-384)
bytes public constant CURVE_A =
hex"fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc";
Expand Down

0 comments on commit 3376fe4

Please sign in to comment.