@me2em/solana
    Preparing search index...

    Class SolanaWalletAdapter

    The Solana WalletAdapter for one exact CAIP-2 chain id (Документ 2 v1.2 §2/§8). Deterministic: resolveWallet derives the payment wallet from the per-call 64-byte seed via SolanaWalletTree at opts.index (default 0).

    The adapter is stateless — no seed, no counter, no registry of used paths. Index allocation is caller responsibility: persist the subjectWalletPath values of your attestations and call SolanaWalletAdapter.nextIndex.

    Implements

    • WalletAdapter
    Index
    chain: string

    Exact CAIP-2 chain id — also this adapter's registry key.

    • Derives the entity's payment wallet on this chain from opts.seed.

      The seed is consumed per call (a throwaway tree is built, derived from and disposed in finally); the returned WalletDescriptor carries NO key material — the derived private key is wiped before returning. Use SolanaWalletTree directly when you need the raw signing key.

      Parameters

      • entity: WalletEntityRef

        The attested entity the wallet is resolved for; its canonical name becomes the descriptor label (diagnostics).

      • Optionalopts: { seed?: Uint8Array; index?: number }

        seed (REQUIRED, exactly 64 bytes) and index (default 0).

      Returns Promise<WalletDescriptor>

      if opts.seed is missing, or not a 64-byte Uint8Array, or index is not a safe integer in 0..2^31 − 1.

    • Structural base58/32-byte check — isValidSolanaAddress.

      Parameters

      • address: string

      Returns boolean

    • Index allocation over used m/44'/501'/N'/0' paths (v1.2 §2.2): foreign/unparseable paths are ignored, empty (or empty-after-filtering) input yields 0, otherwise max+1 — holes are never reused.

      Parameters

      • usedPaths: string[]

      Returns number

      if usedPaths is not an array.