diff --git a/ERCS/erc-7627.md b/ERCS/erc-7627.md index 09594a8ce5..e035415ca6 100644 --- a/ERCS/erc-7627.md +++ b/ERCS/erc-7627.md @@ -111,19 +111,19 @@ contract ERC7627 { event PublicKeyUpdated(address indexed user, bytes newPublicKey, PublicKeyAlgorithm algorithm); // Function to register a user with their public key - function updatePublicKey(bytes calldata _publicKey, PublicKeyAlgorithm _algorithm) public { + function updatePublicKey(bytes calldata _publicKey, PublicKeyAlgorithm _algorithm) external { pk[msg.sender].publicKey = _publicKey; pk[msg.sender].algorithm = _algorithm; emit PublicKeyUpdated(msg.sender, _publicKey, _algorithm); } // Function to send an encrypted message from one user to another - function sendMessage(address _to, bytes32 _sessionId, bytes calldata _encryptedMessage) public { + function sendMessage(address _to, bytes32 _sessionId, bytes calldata _encryptedMessage) external { emit MessageSent(msg.sender, _to, _sessionId, _encryptedMessage); } // Function to retrieve a user's public key - function getUserPublicKey(address _user) public view returns (bytes memory, PublicKeyAlgorithm) { + function getUserPublicKey(address _user) external view returns (bytes memory, PublicKeyAlgorithm) { UserInfo memory userInfo = pk[_user]; return (userInfo.publicKey, userInfo.algorithm); }