Commit ea78c9b6 authored by Vincent Bernardoff's avatar Vincent Bernardoff Committed by Benjamin Canou

Signer/Ledger: major > 1 also supports P256

parent 8581264d
Pipeline #25048938 passed with stages
in 21 minutes 0 seconds
......@@ -148,10 +148,12 @@ module Ledger = struct
let create ~device_info ~version ~of_curve ~of_pkh =
{ device_info ; version ; of_curve ; of_pkh }
let curves { Ledgerwallet_tezos.Version.minor ; patch ; _ } =
let curves { Ledgerwallet_tezos.Version.major ; minor ; patch ; _ } =
let open Ledgerwallet_tezos in
Ed25519 :: Secp256k1 ::
(if minor > 0 && patch > 0 then [Secp256r1] else [])
match major, minor, patch with
| 0, 0, _
| 0, 1, 0 -> [ Ed25519 ; Secp256k1 ]
| _ -> [ Ed25519 ; Secp256k1 ; Secp256r1 ]
let of_hidapi ?pkh device_info h =
let find_ledgers version =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment