mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 22:56:52 +01:00
Add descriptor for TaprootScriptPubKey (#4595)
This commit is contained in:
parent
326cb9845e
commit
26492d2449
1 changed files with 2 additions and 0 deletions
|
@ -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] {
|
||||
|
|
Loading…
Add table
Reference in a new issue