{"version":3,"sources":["jsdelivr-header.js","/npm/@openadp/ocrypt@0.1.3/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCCS,QAAS,0BAA6B,uBAGtC,QAAS,8BAGX,MAAM,QAAU,eAChB,MAAM,oBAAsB,CAAC,uCAQ7B,SAAS,aAAa,EAAiB,EAAW,IAAI,YACzD,MAAM,EAAS,IAAI,QAEnB,OADA,EAAO,oBAAoB,EAAiB,GACrC,CACX,QAQO,SAAS,aAAa,EAAe,EAAW,IAAI,YACvD,MAAM,EAAS,IAAI,QAEnB,OADA,EAAO,oBAAoB,EAAe,GACnC,CACX;;;;;;;;;;UAaS,SAAU,QAAS,gBAAmB","file":"/npm/@openadp/ocrypt@0.1.3/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@openadp/ocrypt@0.1.3/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * OpenADP JavaScript SDK\n * \n * Provides Noise-NK protocol implementation for secure communication\n * compatible with OpenADP servers.\n */\n\nimport { NoiseNK, generateStaticKeyPair } from './noise-nk.js';\n\n// Re-export main classes\nexport { NoiseNK, generateStaticKeyPair };\n\n// Version and protocol information\nexport const VERSION = '0.1.3';\nexport const SUPPORTED_PROTOCOLS = ['Noise_NK_25519_AESGCM_SHA256'];\n\n/**\n * Create a new Noise-NK instance for client use\n * @param {Uint8Array} serverPublicKey - The server's static public key\n * @param {Uint8Array} prologue - Optional prologue data\n * @returns {NoiseNK} Configured Noise-NK instance ready for handshake\n */\nexport function createClient(serverPublicKey, prologue = new Uint8Array()) {\n    const client = new NoiseNK();\n    client.initializeInitiator(serverPublicKey, prologue);\n    return client;\n}\n\n/**\n * Create a new Noise-NK instance for server use\n * @param {Object} staticKeyPair - The server's static key pair {privateKey, publicKey}\n * @param {Uint8Array} prologue - Optional prologue data\n * @returns {NoiseNK} Configured Noise-NK instance ready for handshake\n */\nexport function createServer(staticKeyPair, prologue = new Uint8Array()) {\n    const server = new NoiseNK();\n    server.initializeResponder(staticKeyPair, prologue);\n    return server;\n}\n\n/**\n * @openadp/ocrypt - Nation-state resistant password hashing\n * \n * This package provides a simple 2-function API for distributed password hashing\n * using OpenADP's Oblivious Pseudo Random Function (OPRF) cryptography.\n * \n * @author OpenADP Team <contact@openadp.org>\n * @license MIT\n * @version 0.1.3\n */\n\nexport { register, recover, OcryptError } from './ocrypt.js'; "]}