File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
aggregation_mode/aggregation_programs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use lambdaworks_crypto::merkle_tree::traits::IsMerkleTreeBackend;
22use serde:: { Deserialize , Serialize } ;
33use tiny_keccak:: { Hasher , Keccak } ;
44
5- const RISC0_PROVING_SYSTEM_ID : u8 = 1 ;
5+ const RISC0_PROVING_SYSTEM_ID : u16 = 2 ;
66
77#[ derive( Serialize , Deserialize ) ]
88pub struct Risc0ImageIdAndPubInputs {
@@ -13,7 +13,7 @@ pub struct Risc0ImageIdAndPubInputs {
1313impl Risc0ImageIdAndPubInputs {
1414 pub fn commitment ( & self ) -> [ u8 ; 32 ] {
1515 let mut hasher = Keccak :: v256 ( ) ;
16- hasher. update ( & [ RISC0_PROVING_SYSTEM_ID ] ) ;
16+ hasher. update ( & RISC0_PROVING_SYSTEM_ID . to_be_bytes ( ) ) ;
1717 for & word in & self . image_id {
1818 hasher. update ( & word. to_be_bytes ( ) ) ;
1919 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use lambdaworks_crypto::merkle_tree::traits::IsMerkleTreeBackend;
22use serde:: { Deserialize , Serialize } ;
33use sha3:: { Digest , Keccak256 } ;
44
5- const SP1_PROVING_SYSTEM_ID : u8 = 0 ;
5+ const SP1_PROVING_SYSTEM_ID : u16 = 1 ;
66
77#[ derive( Serialize , Deserialize ) ]
88pub struct SP1VkAndPubInputs {
@@ -13,7 +13,7 @@ pub struct SP1VkAndPubInputs {
1313impl SP1VkAndPubInputs {
1414 pub fn commitment ( & self ) -> [ u8 ; 32 ] {
1515 let mut hasher = Keccak256 :: new ( ) ;
16- hasher. update ( & [ SP1_PROVING_SYSTEM_ID ] ) ;
16+ hasher. update ( & SP1_PROVING_SYSTEM_ID . to_be_bytes ( ) ) ;
1717 for & word in & self . vk {
1818 hasher. update ( word. to_be_bytes ( ) ) ;
1919 }
You can’t perform that action at this time.
0 commit comments