File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const SEED_LEN: usize = 32;
4141const KEY_LEN : usize = 32 ;
4242const SHARE_LEN : usize = KEY_LEN + 1 ;
4343const LABEL : & str = "backup" ;
44+ const VERIFIER_FILE : & str = "verifier.json" ;
4445
4546const SHARES : usize = 5 ;
4647const THRESHOLD : usize = 3 ;
@@ -234,7 +235,7 @@ impl Hsm {
234235 > ( * nzs. as_ref ( ) , None , & mut rng)
235236 . map_err ( |e| HsmError :: SplitKeyFailed { e } ) ?;
236237
237- let verifier_path = self . out_dir . join ( "verifier.json" ) ;
238+ let verifier_path = self . out_dir . join ( VERIFIER_FILE ) ;
238239 debug ! (
239240 "Serializing verifier as json to: {}" ,
240241 verifier_path. display( )
@@ -430,7 +431,7 @@ impl Hsm {
430431 // deserialize verifier:
431432 // verifier was serialized to output/verifier.json in the provisioning ceremony
432433 // it must be included in and deserialized from the ceremony inputs
433- let verifier = self . out_dir . join ( "verifier.json" ) ;
434+ let verifier = self . out_dir . join ( VERIFIER_FILE ) ;
434435 let verifier = fs:: read_to_string ( verifier) ?;
435436 let verifier: FeldmanVerifier < Scalar , ProjectivePoint , SHARE_LEN > =
436437 serde_json:: from_str ( & verifier) ?;
You can’t perform that action at this time.
0 commit comments