Skip to content

Commit abb11dd

Browse files
committed
Add explicit enum values for HW device enums
These are referred to in the documentation so make it clear for non c++ coders.
1 parent 9bf457c commit abb11dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/signer.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ namespace sdk {
1212

1313
// Enum to represent the "level" of support for Liquid on an HW
1414
enum class liquid_support_level : uint32_t {
15-
none, // Liquid is not supported
16-
lite, // Liquid is supported, but the unblinding is done on the host
17-
full // Everything is done on the HW
15+
none = 0, // Liquid is not supported
16+
lite = 1, // Liquid is supported, but the unblinding is done on the host
17+
full = 2 // Everything is done on the HW
1818
};
1919

2020
// Enum to indicate whether AE-protocol signatures are supported/mandatory
2121
enum class ae_protocol_support_level : uint32_t {
22-
none, // AE signing protocol is not supported, only vanilla EC sigs
23-
optional, // Both AE and vanilla EC sigs are supported
24-
mandatory // AE protocol mandatory, vanilla EC sigs not supported
22+
none = 0, // AE signing protocol is not supported, only vanilla EC sigs
23+
optional = 1, // Both AE and vanilla EC sigs are supported
24+
mandatory=2 // AE protocol mandatory, vanilla EC sigs not supported
2525
};
2626

2727
//

0 commit comments

Comments
 (0)