solana-age-verify-sdk 2.0.0-beta.10 → 2.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/verify.js +6 -2
  2. package/package.json +1 -1
package/dist/verify.js CHANGED
@@ -703,10 +703,14 @@ export async function verifyHost18Plus(options) {
703
703
  const memoText = `Solana-Age-Registry | ${statusStr} | HASH: ${facehash} | ${verifiedAt}`;
704
704
  // Step 3: Memo Instruction
705
705
  try {
706
+ // DEFENSIVE FIX: Reconstruct keys locally to ensure they are valid instances for this context
707
+ // This fixes "Invalid public key input" errors caused by version mismatches or "alien" objects
708
+ const cleanFromKey = new PublicKey(fromPubkey.toBase58());
709
+ const cleanPlatformKey = new PublicKey(platformPubKey.toBase58());
706
710
  transaction.add(new TransactionInstruction({
707
711
  keys: [
708
- { pubkey: fromPubkey, isSigner: true, isWritable: false },
709
- { pubkey: platformPubKey, isSigner: true, isWritable: false }
712
+ { pubkey: cleanFromKey, isSigner: true, isWritable: false },
713
+ { pubkey: cleanPlatformKey, isSigner: false, isWritable: false } // Platform doesn't sign the memo instruction itself, just receives fee
710
714
  ],
711
715
  programId: getMemoProgramId(),
712
716
  data: new TextEncoder().encode(memoText),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solana-age-verify-sdk",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.11",
4
4
  "type": "module",
5
5
  "description": "Solana Age Verify is a premium, client-side SDK for privacy-preserving age verification and liveness detection. It generates a deterministic Face Hash linked to a wallet without storing facial data.",
6
6
  "license": "MIT",