test: Test signing psbts without explicitly having scripts

This commit is contained in:
Andrew Chow
2022-06-23 13:46:06 -04:00
parent a73b56888a
commit b80de4c505
3 changed files with 47 additions and 4 deletions

View File

@@ -15,6 +15,10 @@ import unittest
from .util import modinv
# Point with no known discrete log.
H_POINT = "50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"
def TaggedHash(tag, data):
ss = hashlib.sha256(tag.encode('utf-8')).digest()
ss += ss