Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-schnorr.py
Show All 20 Lines | from test_framework.messages import ( | ||||
CBlock, | CBlock, | ||||
COutPoint, | COutPoint, | ||||
CTransaction, | CTransaction, | ||||
CTxIn, | CTxIn, | ||||
CTxOut, | CTxOut, | ||||
FromHex, | FromHex, | ||||
ToHex, | ToHex, | ||||
) | ) | ||||
from test_framework.p2p import ( | from test_framework.p2p import P2PDataStore | ||||
P2PDataStore, | |||||
) | |||||
from test_framework.script import ( | from test_framework.script import ( | ||||
CScript, | |||||
OP_1, | OP_1, | ||||
OP_CHECKMULTISIG, | OP_CHECKMULTISIG, | ||||
OP_CHECKSIG, | OP_CHECKSIG, | ||||
OP_TRUE, | OP_TRUE, | ||||
SIGHASH_ALL, | SIGHASH_ALL, | ||||
SIGHASH_FORKID, | SIGHASH_FORKID, | ||||
CScript, | |||||
SignatureHashForkId, | SignatureHashForkId, | ||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_raises_rpc_error | from test_framework.util import assert_raises_rpc_error | ||||
# A mandatory (bannable) error occurs when people pass Schnorr signatures | # A mandatory (bannable) error occurs when people pass Schnorr signatures | ||||
# into OP_CHECKMULTISIG. | # into OP_CHECKMULTISIG. | ||||
SCHNORR_MULTISIG_ERROR = 'mandatory-script-verify-flag-failed (Signature cannot be 65 bytes in CHECKMULTISIG)' | SCHNORR_MULTISIG_ERROR = 'mandatory-script-verify-flag-failed (Signature cannot be 65 bytes in CHECKMULTISIG)' | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |