JJ: Description from the destination commit:
~ todos JJ: Description from source commit: todo pid
This commit is contained in:
parent
650264f21e
commit
abb665447b
12 changed files with 17 additions and 31 deletions
|
|
@ -10,6 +10,8 @@ auditor_pub="A17JXR3E6J4CXDPYT7S1H25PGJ3ABS26TQ38654QCX0TB59RPMF0"
|
|||
master_key="./default/master_offline_private_key"
|
||||
zero_kudos="KUDOS:0.0"
|
||||
|
||||
# TODO launch mte.exe and kill it a then end with its PID
|
||||
|
||||
offline_tool() {
|
||||
dune exec offline -- "$@" > /dev/null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ let () =
|
|||
check Timestamp.jsont {|{"t_s": "never"}|};
|
||||
check_bad Timestamp.jsont {|{"t_s": "123456780"}|};
|
||||
check_bad Timestamp.jsont {|{"t_s": "agagou"}|};
|
||||
|
||||
(* TODO CS not implemented *)
|
||||
check_bad DenominationKey.jsont
|
||||
{|{"cipher": "CS", "age_mask": 18, "cs_pub": "ouhagag"}|};
|
||||
()
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ let keys content =
|
|||
else Fmt.error "version incompatible"
|
||||
in
|
||||
|
||||
(* TODO validate ExchangeWireAccount
|
||||
need hash over json *)
|
||||
(* TODO json hash
|
||||
validate wire *)
|
||||
let* () =
|
||||
let open AggregateTransferFee in
|
||||
v.wire_fees
|
||||
|
|
@ -52,7 +52,7 @@ let keys content =
|
|||
match opt with
|
||||
| None -> Fmt.error "exchange_pub is not in signkeys list"
|
||||
| Some _sk ->
|
||||
(* TODO add a --now option?
|
||||
(* todo add a --now option if we want to validate timestamps
|
||||
let now = Timestamp.of_ptime (Ptime_clock.now ()) in
|
||||
if Signkey.is_valid_at ~timestamp:now sk then Ok ()
|
||||
else Fmt.error "exchange_pub is not valid at the current time"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue