Skip to content

Commit 0657463

Browse files
committed
feat: add DER encoding methods and update key type alias in key_utils
Signed-off-by: MonaaEid <monaa_eid@hotmail.com>
1 parent 1926a85 commit 0657463

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hiero_sdk_python/utils/key_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ def key_to_proto(key: Key | None) -> basic_types_pb2.Key | None:
3333
if isinstance(key, Key):
3434
return key.to_proto_key()
3535

36-
raise TypeError("Key must be of type PrivateKey or PublicKey")
36+
raise TypeError(
37+
"Key must be of type PrivateKey or PublicKey, or another SDK Key implementation"
38+
)

0 commit comments

Comments
 (0)