diff --git a/rvsol/foundry.toml b/rvsol/foundry.toml index 28ac7ad4..f49d8c9e 100644 --- a/rvsol/foundry.toml +++ b/rvsol/foundry.toml @@ -2,7 +2,6 @@ src = 'src' out = 'out' libs = ['lib'] -libraries = ['src/PreimageKeyLib.sol:PreimageKeyLib:0x0000000000000000000000000000000000007331'] optimizer = true optimizer_runs = 999999 diff --git a/rvsol/src/PreimageKeyLib.sol b/rvsol/src/PreimageKeyLib.sol index 3a8357a2..c3f36cb8 100644 --- a/rvsol/src/PreimageKeyLib.sol +++ b/rvsol/src/PreimageKeyLib.sol @@ -9,7 +9,7 @@ library PreimageKeyLib { /// @param _ident The identifier of the local data. [0, 32) bytes in size. /// @param _localContext The local context for the key. /// @return key_ The context-specific local key. - function localizeIdent(uint256 _ident, bytes32 _localContext) public view returns (bytes32 key_) { + function localizeIdent(uint256 _ident, bytes32 _localContext) internal view returns (bytes32 key_) { assembly { // Set the type byte in the given identifier to `1` (Local). We only care about // the [1, 32) bytes in this value. @@ -26,7 +26,7 @@ library PreimageKeyLib { /// @param _key The local data key to localize. /// @param _localContext The local context for the key. /// @return localizedKey_ The localized local data key. - function localize(bytes32 _key, bytes32 _localContext) public view returns (bytes32 localizedKey_) { + function localize(bytes32 _key, bytes32 _localContext) internal view returns (bytes32 localizedKey_) { assembly { // Grab the current free memory pointer to restore later. let ptr := mload(0x40) @@ -44,7 +44,7 @@ library PreimageKeyLib { /// @notice Computes and returns the key for a global keccak pre-image. /// @param _preimage The pre-image. /// @return key_ The pre-image key. - function keccak256PreimageKey(bytes memory _preimage) public pure returns (bytes32 key_) { + function keccak256PreimageKey(bytes memory _preimage) internal pure returns (bytes32 key_) { assembly { // Grab the size of the `_preimage` let size := mload(_preimage)