1
0

tests: rm some ecc tests (moved to electrum-ecc)

see cd6bb9beb9
This commit is contained in:
SomberNight
2024-10-11 18:46:30 +00:00
parent 225ed079a9
commit 8d79726ec5
3 changed files with 1 additions and 189 deletions

View File

@@ -799,6 +799,7 @@ def taproot_tweak_seckey(seckey0: bytes, h: bytes) -> bytes:
TapTreeLeaf = Tuple[int, bytes]
TapTree = Union[TapTreeLeaf, Sequence['TapTree']]
# FIXME just use electrum_ecc.util.bip340_tagged_hash instead
def bip340_tagged_hash(tag: bytes, msg: bytes) -> bytes:
# note: _libsecp256k1.secp256k1_tagged_sha256 benchmarks about 70% slower than this (on my machine)
return sha256(sha256(tag) + sha256(tag) + msg)