Add descriptor for TaprootScriptPubKey (#4595)

This commit is contained in:
benthecarman 2022-08-10 07:10:23 -05:00 committed by GitHub
parent 326cb9845e
commit 26492d2449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1357,6 +1357,8 @@ case class TaprootScriptPubKey(override val asm: Vector[ScriptToken])
s"pubKeyBytes must be 32 bytes in length, got=${asm(2).byteSize}")
XOnlyPubKey.fromBytes(asm(2).bytes)
}
override def toString = s"rawtr(${pubKey.hex})"
}
object TaprootScriptPubKey extends ScriptFactory[TaprootScriptPubKey] {