[#3] Added generate proto script create container method
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
f8465e5b99
commit
fba6eaaa9c
34 changed files with 547 additions and 108 deletions
|
@ -42,3 +42,11 @@ class KeyExtension:
|
|||
if len(sequence_symbols) == 0 or sequence_symbols is None:
|
||||
raise ValueError(f"Empty sequence symbols of key: {sequence_symbols}")
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def get_hex_string(value):
|
||||
if value is None or len(value) == 0:
|
||||
raise ValueError("Input parameter is missing")
|
||||
|
||||
# Convert byte array to hexadecimal string
|
||||
return f"{int.from_bytes(value, byteorder='big'):0{len(value) * 2}x}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue