Skip to content

Commit

Permalink
Respond to RFCs for nucypher#3513.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Jun 24, 2024
1 parent c6ed0e7 commit 28df8b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nucypher/policy/conditions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
CONTEXT_REGEX = re.compile(":[a-zA-Z_][a-zA-Z0-9_]*")

USER_ADDRESS_SCHEMES = {
USER_ADDRESS_CONTEXT: None, # TODO either EIP712 or EIP4361 for now, but should use the default that is eventually decided (likely EIP4361)
USER_ADDRESS_CONTEXT: None, # TODO either EIP712 or EIP4361 for now, but should use the default that is eventually decided (likely EIP4361) - #tdec/178
USER_ADDRESS_EIP712_CONTEXT: EvmAuth.AuthScheme.EIP712.value,
USER_ADDRESS_EIP4361_CONTEXT: EvmAuth.AuthScheme.EIP4361.value,
USER_ADDRESS_EIP4361_EXTERNAL_CONTEXT: EvmAuth.AuthScheme.EIP4361.value,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/conditions/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_user_address_context_invalid_typed_data(
),
indirect=["valid_user_address_auth_message"],
)
def test_user_address_context_unexpected_scheme_data(
def test_user_address_context_variable_with_incompatible_auth_message(
context_variable_name, valid_user_address_auth_message
):
# scheme in message is unexpected for context variable name
Expand Down

0 comments on commit 28df8b8

Please sign in to comment.