Skip to content

Commit

Permalink
Merge pull request risc0#73 from smtmfft/sign-eip712-pi
Browse files Browse the repository at this point in the history
enable eip712 sign pi
  • Loading branch information
Brechtpd authored Mar 28, 2024
2 parents fc78974 + 76dc3ef commit b48d25f
Show file tree
Hide file tree
Showing 9 changed files with 405 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ log.txt
rpc_cache.json
.idea
*.json.gz
.vscode/
raiko-host/guests/sgx/raiko-guest
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

200 changes: 198 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions lib/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub const ETH_MAINNET_CHAIN_SPEC: Lazy<ChainSpec> = Lazy::new(|| {
},
l1_contract: None,
l2_contract: None,
sgx_verifier_address: None,
}
});

Expand All @@ -75,6 +76,9 @@ pub const TAIKO_A6_CHAIN_SPEC: Lazy<ChainSpec> = Lazy::new(|| ChainSpec {
},
l1_contract: Some(Address::from_str("0xB20BB9105e007Bd3E0F73d63D4D3dA2c8f736b77").unwrap()),
l2_contract: Some(Address::from_str("0x1670080000000000000000000000000000010001").unwrap()),
sgx_verifier_address: Some(
Address::from_str("0x558E38a3286916934Cb63ced04558A52F7Ce67a9").unwrap(),
),
});

/// The Taiko A7 specification.
Expand All @@ -92,6 +96,9 @@ pub const TAIKO_A7_CHAIN_SPEC: Lazy<ChainSpec> = Lazy::new(|| ChainSpec {
},
l1_contract: Some(Address::from_str("0xC069c3d2a9f2479F559AD34485698ad5199C555f").unwrap()),
l2_contract: Some(Address::from_str("0x1670010000000000000000000000000000010001").unwrap()),
sgx_verifier_address: Some(
Address::from_str("0x558E38a3286916934Cb63ced04558A52F7Ce67a9").unwrap(),
),
});

pub fn get_network_spec(network: Network) -> ChainSpec {
Expand Down Expand Up @@ -150,6 +157,7 @@ pub struct ChainSpec {
pub eip_1559_constants: Eip1559Constants,
pub l1_contract: Option<Address>,
pub l2_contract: Option<Address>,
pub sgx_verifier_address: Option<Address>,
}

impl ChainSpec {
Expand All @@ -165,6 +173,7 @@ impl ChainSpec {
eip_1559_constants,
l1_contract: None,
l2_contract: None,
sgx_verifier_address: None,
}
}
/// Returns the network chain ID.
Expand Down
Loading

0 comments on commit b48d25f

Please sign in to comment.