Skip to content

Commit 32f8c72

Browse files
committed
feat: type case
1 parent 7490dbf commit 32f8c72

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/SignatureChecker.sol

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ contract SignatureChecker is Ownable {
2424
error DuplicateProof();
2525

2626
/// @notice Constructor configures the notary address
27-
/// @param _notaryAddress The address of the notary to add
28-
constructor(address _notaryAddress) Ownable(msg.sender) {
29-
isNotary[_notaryAddress] = true;
27+
/// @param notaryAddress The address of the notary to add
28+
constructor(address notaryAddress) Ownable(msg.sender) {
29+
isNotary[notaryAddress] = true;
3030
}
3131

3232
/// @notice Adds a notary
33-
/// @param _notaryAddress The address of the notary to add
34-
function addNotary(address _notaryAddress) external onlyOwner {
35-
isNotary[_notaryAddress] = true;
33+
/// @param notaryAddress The address of the notary to add
34+
function addNotary(address notaryAddress) external onlyOwner {
35+
isNotary[notaryAddress] = true;
3636
}
3737

3838
/// @notice Removes a notary
39-
/// @param _notaryAddress The address of the notary to remove
40-
function removeNotary(address _notaryAddress) external onlyOwner {
41-
isNotary[_notaryAddress] = false;
39+
/// @param notaryAddress The address of the notary to remove
40+
function removeNotary(address notaryAddress) external onlyOwner {
41+
isNotary[notaryAddress] = false;
4242
}
4343

4444
// Check to see that the digest is a merkle root of a keccak256 hash of a leafs = (keccak(value), keccak(manifest))
45-
function verify_digest(bytes32 _digest, bytes32 _manifest, bytes32 _value) internal pure returns (bool) {
46-
bytes32 root = keccak256(abi.encodePacked(_value, _manifest));
47-
return _digest == root;
45+
function verify_digest(bytes32 digest, bytes32 manifest, bytes32 value) internal pure returns (bool) {
46+
bytes32 root = keccak256(abi.encodePacked(value, manifest));
47+
return digest == root;
4848
}
4949

5050
/// @notice Verifies a signature

0 commit comments

Comments
 (0)