Skip to content

Commit

Permalink
fixfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Feb 6, 2024
1 parent 25209fa commit 418b0f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion rvsol/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
src = 'src'
out = 'out'
libs = ['lib']
libraries = ['src/PreimageKeyLib.sol:PreimageKeyLib:0x0000000000000000000000000000000000007331']
optimizer = true
optimizer_runs = 999999

Expand Down
6 changes: 3 additions & 3 deletions rvsol/src/PreimageKeyLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 418b0f0

Please sign in to comment.