File tree Expand file tree Collapse file tree
batcher/aligned-batcher/src/mina Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use log::{debug, warn};
33
44const STATE_HASH_SIZE : usize = 32 ;
55// TODO(gabrielbosio): check that this length is always the same for every block
6- const PROTOCOL_STATE_SIZE : usize = 2060 ;
6+ const PROTOCOL_STATE_SIZE : usize = 2056 ;
77
88pub fn verify_protocol_state_proof_integrity ( proof : & [ u8 ] , public_input : & [ u8 ] ) -> bool {
99 debug ! ( "Checking Mina protocol state proof" ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ fn hash_last_vrf(chain: &MinaStateProtocolStateValueStableV2) -> String {
3939 hasher. update ( chain. body . consensus_state . last_vrf_output . as_slice ( ) ) ;
4040 let digest = hasher. finalize ( ) . to_vec ( ) ;
4141
42- String :: from_utf8 ( digest) . unwrap ( )
42+ hex :: encode ( & digest)
4343}
4444
4545fn hash_state ( chain : & MinaStateProtocolStateValueStableV2 ) -> String {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const MAX_PROOF_SIZE: usize = 16 * 1024;
2626const MAX_PUB_INPUT_SIZE : usize = 6 * 1024 ;
2727const PROTOCOL_STATE_HASH_SIZE : usize = 32 ;
2828// TODO(gabrielbosio): check that this length is always the same for every block
29- const PROTOCOL_STATE_SIZE : usize = 2060 ;
29+ const PROTOCOL_STATE_SIZE : usize = 2056 ;
3030
3131#[ no_mangle]
3232pub extern "C" fn verify_protocol_state_proof_ffi (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use kimchi::{
1717} ;
1818use serde:: Deserialize ;
1919
20- const BLOCKCHAIN_VK_JSON : & str = include_str ! ( "devnet_vk .json" ) ;
20+ const BLOCKCHAIN_VK_JSON : & str = include_str ! ( "mainnet_vk .json" ) ;
2121
2222#[ derive( Deserialize ) ]
2323struct BlockchainVerificationKey {
You can’t perform that action at this time.
0 commit comments