mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 09:37:31 +00:00
Update ecc.py
This commit is contained in:
parent
72c79597fa
commit
227a74c327
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def sig_string_from_r_and_s(r: int, s: int) -> bytes:
|
|||
|
||||
def _x_and_y_from_pubkey_bytes(pubkey: bytes) -> Tuple[int, int]:
|
||||
pubkey_ptr = create_string_buffer(64)
|
||||
assert isinstance(pubkey, bytes), f'pubkey must be bytes, not {type(pubkey)}'
|
||||
assert isinstance(pubkey, bytes), f'pubkey must be bytes, not {type(pubkey)}'
|
||||
ret = _libsecp256k1.secp256k1_ec_pubkey_parse(
|
||||
_libsecp256k1.ctx, pubkey_ptr, pubkey, len(pubkey))
|
||||
if not ret:
|
||||
|
|
Loading…
Add table
Reference in a new issue