Shielded Calls
Encrypted writes and signed reads using seismic-alloy
Overview
Defining a Contract Interface
use alloy::sol;
sol! {
interface ISeismicCounter {
event setNumberEmit();
event incrementEmit();
function setNumber(suint256 newNumber) public;
function increment() public;
function isOdd() public view returns (bool);
}
}Shielded Write
Building the Transaction
Sending the Transaction
Complete Example
Signed Read
Building the Read Request
Executing the Read
Complete Example
How Encryption Works
Shielded Write vs. Signed Read
Aspect
Shielded Write
Signed Read
Important Notes
See Also
Last updated

