You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To further reduce the gas cost of writing data, we can support the appending feature on the storage contract to avoid an additional sstore. Two new functions will be added:
function appendBlob(uint256 _blobIdx, uint256 _length) public payable returns (uint256 kvIndex)
function get(uint256 _kvIndex, DecodeType _decodeType, uint256 _off, uint256 _len) public view virtual returns (bytes memory)
Important
If the appendBlob is used, the application contract will need to remeber the returned kvIndex, and then retrieve the value later using it.
A prototype of implementation will be:
function append(uint256 _blobIdx, uint256 _length) public payable returns (uint256) {
require(_length <= MAX_KV_SIZE, "DecentralizedKV: data too large");
Attestation for EthStorage circom MPC Phase 2 Trusted Setup ceremony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters