Skip to content

Commit

Permalink
feat: a working check of the signatures in messages and transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed May 7, 2024
1 parent 971ca9f commit 3a5f979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ape_aws/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sign_raw_msghash(self, msghash: HexBytes) -> Optional[MessageSignature]:
return None

if signature := self._sign_raw_hash(msghash):
return MessageSignature(**_convert_der_to_rsv(signature, signature[0] + 27))
return MessageSignature(**_convert_der_to_rsv(signature, 75))

return None

Expand Down
1 change: 1 addition & 0 deletions tests/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ def test_signing_message(kms_account, string_message):

def test_signing_transaction(kms_account, transaction):
val = kms_account.sign_transaction(transaction)
breakpoint()
assert isinstance(val.signature, TransactionSignature)

0 comments on commit 3a5f979

Please sign in to comment.