feat(common): add support for Taproot input and output scripts

pull/1856/head
Pavol Rusnak 3 years ago committed by Andrew Kozlik
parent c0c2718c1e
commit 4ed9f00c73

@ -19,6 +19,7 @@ enum InputScriptType {
EXTERNAL = 2; // reserved for external inputs (coinjoin)
SPENDWITNESS = 3; // native SegWit
SPENDP2SHWITNESS = 4; // SegWit over P2SH (backward compatible)
SPENDTAPROOT = 5; // Taproot
}
/**
@ -31,6 +32,7 @@ enum OutputScriptType {
PAYTOOPRETURN = 3; // op_return
PAYTOWITNESS = 4; // only for change output
PAYTOP2SHWITNESS = 5; // only for change output
PAYTOTAPROOT = 6; // only for change output
}
/**

@ -7,3 +7,4 @@ SPENDMULTISIG = 1
EXTERNAL = 2
SPENDWITNESS = 3
SPENDP2SHWITNESS = 4
SPENDTAPROOT = 5

@ -8,3 +8,4 @@ PAYTOMULTISIG = 2
PAYTOOPRETURN = 3
PAYTOWITNESS = 4
PAYTOP2SHWITNESS = 5
PAYTOTAPROOT = 6

@ -290,6 +290,7 @@ if TYPE_CHECKING:
EXTERNAL = 2
SPENDWITNESS = 3
SPENDP2SHWITNESS = 4
SPENDTAPROOT = 5
class OutputScriptType(IntEnum):
PAYTOADDRESS = 0
@ -298,6 +299,7 @@ if TYPE_CHECKING:
PAYTOOPRETURN = 3
PAYTOWITNESS = 4
PAYTOP2SHWITNESS = 5
PAYTOTAPROOT = 6
class DecredStakingSpendType(IntEnum):
SSGen = 0

@ -298,6 +298,7 @@ class InputScriptType(IntEnum):
EXTERNAL = 2
SPENDWITNESS = 3
SPENDP2SHWITNESS = 4
SPENDTAPROOT = 5
class OutputScriptType(IntEnum):
@ -307,6 +308,7 @@ class OutputScriptType(IntEnum):
PAYTOOPRETURN = 3
PAYTOWITNESS = 4
PAYTOP2SHWITNESS = 5
PAYTOTAPROOT = 6
class DecredStakingSpendType(IntEnum):

Loading…
Cancel
Save