mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-13 11:35:40 +01:00
Be more precise with types
This commit is contained in:
parent
b30733572e
commit
7daf478fac
1 changed files with 3 additions and 2 deletions
|
@ -281,7 +281,8 @@ case class TaprootKeyPath(
|
|||
}
|
||||
}
|
||||
|
||||
override def sigVersion: SigVersionTaproot = SigVersionTaprootKeySpend
|
||||
override def sigVersion: SigVersionTaprootKeySpend.type =
|
||||
SigVersionTaprootKeySpend
|
||||
}
|
||||
|
||||
object TaprootKeyPath extends Factory[TaprootKeyPath] {
|
||||
|
@ -409,7 +410,7 @@ case class TaprootScriptPath(stack: Vector[ByteVector]) extends TaprootWitness {
|
|||
|
||||
def leafVersion: LeafVersion = controlBlock.leafVersion
|
||||
|
||||
def sigVersion: SigVersionTaproot = leafVersion match {
|
||||
override def sigVersion: SigVersionTapscript.type = leafVersion match {
|
||||
case LeafVersion.Tapscript => SigVersionTapscript
|
||||
case UnknownLeafVersion(toByte) =>
|
||||
sys.error(s"Unknown leaf version=$toByte, cannot determine sigVersion")
|
||||
|
|
Loading…
Add table
Reference in a new issue