MCPcopy Create free account
hub / github.com/draphy/pushforge / encryptPayload

Function encryptPayload

packages/builder/lib/payload.ts:240–273  ·  view source on GitHub ↗
(
  localKeys: CryptoKeyPair,
  salt: Uint8Array<ArrayBuffer>,
  payload: string,
  target: PushSubscription,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

buildPushHTTPRequestFunction · 0.85

Calls 7

importClientKeysFunction · 0.85
deriveSharedSecretFunction · 0.85
derivePseudoRandomKeyFunction · 0.85
createContextFunction · 0.85
deriveNonceFunction · 0.85
padPayloadFunction · 0.85

Tested by

no test coverage detected