( msgpackEncodedData: Buffer, xOnlyPubkey: Buffer )
| 19 | |
| 20 | // Construct script that only contains the data section |
| 21 | export function buildDataScript( |
| 22 | msgpackEncodedData: Buffer, |
| 23 | xOnlyPubkey: Buffer |
| 24 | ) { |
| 25 | return buildNoteScriptV2(xOnlyPubkey, false, msgpackEncodedData); |
| 26 | } |
| 27 | |
| 28 | // Construct NOTE locking script with data section and Payload unlock script |
| 29 | export function buildCommitNoteScript( |
no test coverage detected