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

Function buildDataScript

src/note.ts:21–26  ·  view source on GitHub ↗
(
  msgpackEncodedData: Buffer,
  xOnlyPubkey: Buffer
)

Source from the content-addressed store, hash-verified

19
20// Construct script that only contains the data section
21export 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
29export function buildCommitNoteScript(

Callers 1

Calls 1

buildNoteScriptV2Function · 0.85

Tested by

no test coverage detected