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

Function toXOnly

src/btc/btc-ecc.ts:49–51  ·  view source on GitHub ↗
(pubkey: Buffer)

Source from the content-addressed store, hash-verified

47}
48
49export function toXOnly(pubkey: Buffer): Buffer {
50 return Buffer.from(pubkey.subarray(1, 33));
51}
52
53export function eccValidator(
54 pubkey: Buffer,

Callers 7

generateP2TRNoteInfoFunction · 0.90
generateP2TRNoteInfoV1Function · 0.90
addPsbtPayUtxosFunction · 0.90
signPsbtFunction · 0.90
finishSignPsbtFunction · 0.90
tweakSignerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected