{"version":3,"file":"loadKeypair.cjs","sources":["../../../../src/auth/loadKeypair.ts"],"sourcesContent":["import type { WalletKeypair } from \"./types\";\n\nexport function loadKeypair(bytes: Uint8Array): WalletKeypair {\n  if (bytes.length !== 64) {\n    throw new Error(\n      \"Invalid keypair format. Expected Uint8Array of 64 bytes (Solana CLI format).\"\n    );\n  }\n\n  const secretKey = new Uint8Array(bytes);\n  const publicKey = secretKey.slice(32);\n\n  return { publicKey, secretKey };\n}\n"],"names":[],"mappings":";;AAEM,SAAU,WAAW,CAAC,KAAiB,EAAA;AAC3C,IAAA,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE;AACvB,QAAA,MAAM,IAAI,KAAK,CACb,8EAA8E,CAC/E;IACH;AAEA,IAAA,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC;IACvC,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;AAErC,IAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;AACjC;;;;"}