From 0438754858f00086d03a250e58088ed3e57cc219 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Fri, 10 Jan 2025 10:07:53 -0800 Subject: [PATCH] feat: fix vkey script --- contracts/genesis.json | 10 +++++----- script/bin/vkey.rs | 6 +----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/contracts/genesis.json b/contracts/genesis.json index c7be93b..093ad78 100644 --- a/contracts/genesis.json +++ b/contracts/genesis.json @@ -1,11 +1,11 @@ { - "executionStateRoot": "0x91ce451ec39cad026fd5d242365c92cc5d56d4ef1362ebff20559585f89c1f7d", + "executionStateRoot": "0xdf692e41511ac4a0382f73ea44b3820bd87effc050d43c104abca9bc482c250b", "genesisTime": 1655733600, "genesisValidatorsRoot": "0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078", - "guardian": "0xded0000e32f8f40414d3ab3a830f735a3553e18e", - "head": 6726144, - "header": "0x3d058d5890fbbb7c2e349e140c95044dfb5d00b9f6205c889b0d1d000a322de5", - "heliosProgramVkey": "0x000b8552e84d824545ed24bb0c5c2c3d5180810140c7f63228389cc08904e56f", + "guardian": "0x788c45cafab3ea427b9079889be43d7d3cd7500c", + "head": 6733152, + "header": "0xce795ebea5c29436d4a10ca097712d2785e4f8541caec377c7388306d6c21376", + "heliosProgramVkey": "0x00796ec46c244906ad25c835f76c682e538e7ec0837a77bdaa88f0eb1aad8e9f", "secondsPerSlot": 12, "slotsPerEpoch": 32, "slotsPerPeriod": 8192, diff --git a/script/bin/vkey.rs b/script/bin/vkey.rs index a855c3d..277eb1f 100644 --- a/script/bin/vkey.rs +++ b/script/bin/vkey.rs @@ -1,4 +1,3 @@ -use alloy_primitives::B256; use anyhow::Result; use sp1_sdk::{HashableKey, Prover, ProverClient}; @@ -7,9 +6,6 @@ const HELIOS_ELF: &[u8] = include_bytes!("../../elf/sp1-helios-elf"); fn main() -> Result<()> { let client = ProverClient::builder().cpu().build(); let (_pk, vk) = client.setup(HELIOS_ELF); - println!( - "SP1 Helios Verifying Key: {:?}", - B256::from(vk.hash_bytes()) - ); + println!("SP1 Helios Verifying Key: {:?}", vk.bytes32()); Ok(()) }