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;
41
41
const KEY_LEN : usize = 32 ;
42
42
const SHARE_LEN : usize = KEY_LEN + 1 ;
43
43
const LABEL : & str = "backup" ;
44
+ const VERIFIER_FILE : & str = "verifier.json" ;
44
45
45
46
const SHARES : usize = 5 ;
46
47
const THRESHOLD : usize = 3 ;
@@ -234,7 +235,7 @@ impl Hsm {
234
235
> ( * nzs. as_ref ( ) , None , & mut rng)
235
236
. map_err ( |e| HsmError :: SplitKeyFailed { e } ) ?;
236
237
237
- let verifier_path = self . out_dir . join ( "verifier.json" ) ;
238
+ let verifier_path = self . out_dir . join ( VERIFIER_FILE ) ;
238
239
debug ! (
239
240
"Serializing verifier as json to: {}" ,
240
241
verifier_path. display( )
@@ -430,7 +431,7 @@ impl Hsm {
430
431
// deserialize verifier:
431
432
// verifier was serialized to output/verifier.json in the provisioning ceremony
432
433
// 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 ) ;
434
435
let verifier = fs:: read_to_string ( verifier) ?;
435
436
let verifier: FeldmanVerifier < Scalar , ProjectivePoint , SHARE_LEN > =
436
437
serde_json:: from_str ( & verifier) ?;
You can’t perform that action at this time.
0 commit comments