MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / createTapLeafScript

Function createTapLeafScript

src/btc/btc-p2tr-note.ts:136–142  ·  view source on GitHub ↗
(redeem: any, p2tr: any)

Source from the content-addressed store, hash-verified

134}
135
136function createTapLeafScript(redeem: any, p2tr: any) {
137 return {
138 leafVersion: redeem.redeemVersion,
139 script: redeem.output,
140 controlBlock: p2tr.witness![p2tr.witness!.length - 1]!,
141 };
142}
143
144function addNoteInput(
145 psbt: bitcoin.Psbt,

Callers 1

createP2TRNotePsbtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected