wip secmod
This commit is contained in:
parent
2dafed2273
commit
355efa8b0f
2 changed files with 85 additions and 0 deletions
|
|
@ -4,6 +4,9 @@ let config_filename = "mte.conf"
|
|||
let secrets_dir = Fpath.v "secrets"
|
||||
let secmod_dir = Fpath.(secrets_dir / "secmod")
|
||||
|
||||
(* TODO config *)
|
||||
let secmod_eddsa_dir = Fpath.(secrets_dir / "secmod_eddsa")
|
||||
|
||||
let config_data =
|
||||
match Assets_crunch.read config_filename with
|
||||
| None -> fail "static file not found: `%s`" config_filename
|
||||
|
|
@ -197,6 +200,28 @@ module Exchange_secmod_eddsa = struct
|
|||
|
||||
let lookahead_sign = get "lookahead_sign" |> duration
|
||||
let overlap_duration = get "overlap_duration" |> duration
|
||||
let duration = get "duration" |> duration
|
||||
|
||||
(* TODO config
|
||||
LOOKAHEAD_SIGN
|
||||
|
||||
How long do we generate denomination and signing keys ahead of time?
|
||||
OVERLAP_DURATION
|
||||
|
||||
How much should validity periods for coins overlap? Should be long enough to avoid problems with wallets picking one key and then due to network latency another key being valid. The DURATION_WITHDRAW period must be longer than this value.
|
||||
DURATION
|
||||
|
||||
For how long should EdDSA keys be valid for signing?
|
||||
SM_PRIV_KEY
|
||||
|
||||
Where should the security module store its long-term private key?
|
||||
KEY_DIR
|
||||
|
||||
Where should the security module store the private keys it manages?
|
||||
UNIXPATH
|
||||
|
||||
On which path should the security module listen for signing requests?
|
||||
*)
|
||||
end
|
||||
|
||||
(* -- *)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue