We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78029ce commit bff321eCopy full SHA for bff321e
bsv/wallet/key_deriver.py
@@ -21,8 +21,10 @@ class Protocol:
21
protocol: str
22
23
def __init__(self, security_level: int, protocol: str):
24
- if not isinstance(protocol, str) or len(protocol) < 5 or len(protocol) > 400:
25
- raise ValueError("protocol names must be 5-400 characters")
+ # Allow 3-400 characters to match TS/Go (e.g., "ctx" is valid in tests)
+ # This matches _validate_protocol() behavior
26
+ if not isinstance(protocol, str) or len(protocol) < 3 or len(protocol) > 400:
27
+ raise ValueError("protocol names must be 3-400 characters")
28
self.security_level = security_level
29
self.protocol = protocol
30
0 commit comments