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

Function buildCommitNoteScript

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

Source from the content-addressed store, hash-verified

27
28// Construct NOTE locking script with data section and Payload unlock script
29export function buildCommitNoteScript(
30 msgpackEncodedData: Buffer,
31 xOnlyPubkey: Buffer
32) {
33 return buildNoteScriptV2(xOnlyPubkey, true, msgpackEncodedData);
34}
35
36// Construct locking script with embedded data placed after the NOTE identifier, split into 520-byte segments, data is msgpack encoded
37export function buildNoteScriptV2(

Callers

nothing calls this directly

Calls 1

buildNoteScriptV2Function · 0.85

Tested by

no test coverage detected