SPB Git

Repository Public

multichain-solana.json 50.8 KB 772 lines json

1{2 "schema": "qyvora-review/1",3 "title": "Multi-chain audit — Solana (QyvoraSolana and the Solana send path of the wallet service)",4 "reviewed_revision_base": "08b6c46",5 "reviewed_revision_head": "b27c2c8",6 "date": "2026-12-05",7 "method": "Line-by-line manual review of Sources/QyvoraSolana (SolanaAddress, SolanaMessage, SolanaInstructions, SolanaTokens, SolanaJSON, SolanaRPC, SolanaHistory, SolanaSendPlanner, SolanaNetwork) and of Sources/QyvoraWallet/WalletService+Solana.swift, with the Solana parts of WalletService+Cold, +Send, +Chains, +Shield, WalletService and Core/Networks as far as the send path goes. Checked for: traps on untrusted input, non-canonical encodings accepted, shown ≠ signed, signing of server bytes, limits and fee ceilings bypassable through the public interface, constants (two sources where one exists), secrets, cross-family confusion, replay, and what one lying endpoint can do. Backed by tests executed on M5M36 (Swift 6.4): conformance vectors derived by solders 0.29.0, differential campaigns against solders, PyNaCl (libsodium) and bip-utils, property campaigns, eleven fuzz targets. The Ed25519 primitive and SLIP-0010 are the lead's review, used here as given. Internal audit, not an independent review.",8 "limits": "The application screens were being rebuilt and were not reviewed: what depends on them is recorded as open application findings. No live network was used with wallet material; endpoints are scripted stubs. The Token-2022 extension names are those of the RPC jsonParsed output and were not compared with a live node. solders is one independent implementation of the wire format, not the validator.",9 "entries": [10  {11   "construct": "SolanaPublicKey(base58:): strict text of 32 bytes",12   "location": "Sources/QyvoraSolana/SolanaAddress.swift:62",13   "verdict": "safe",14   "note": "Length bounded (32 to 44 characters) before the quadratic base58 decoder runs; exactly 32 bytes; no trimming. 30 016 texts in full mode agree with solders Pubkey.from_string (accepted or refused, same bytes); none refused here and accepted by solders."15  },16  {17   "construct": "SolanaPublicKey.isOnCurve",18   "location": "Sources/QyvoraSolana/SolanaAddress.swift:77",19   "verdict": "safe",20   "note": "Delegates to Ed25519.isOnCurve (lead's primitive). 40 056 inputs in full mode agree with solders (curve25519-dalek), including the 38 non-canonical y encodings (y = p … p+18, both sign bits), y = 0…3 with and without sign bit and the eight small-order points: a different verdict would shift every bump and every associated token account."21  },22  {23   "construct": "SolanaProgram.reserved: recipients that are never a wallet",24   "location": "Sources/QyvoraSolana/SolanaAddress.swift:99",25   "verdict": "safe",26   "note": "System, Token, Token-2022, ATA, Compute Budget, both Memo programs, the wrapped-SOL mint, four sysvars, Stake, Vote, the upgradeable loader, the lookup-table program. System, Compute Budget, Token, the lookup-table program and the four sysvars equal the constants solders publishes; the others are checked against the programs' documentation (one source: they are not in solders)."27  },28  {29   "construct": "createProgramAddress / findProgramAddress",30   "location": "Sources/QyvoraSolana/SolanaAddress.swift:129",31   "verdict": "safe",32   "note": "SHA-256(seeds ‖ program ‖ \"ProgramDerivedAddress\"), refused on the curve; at most 16 seeds of at most 32 bytes (15 plus the bump for find). 50 000 random cases in full mode (find and create) and 252 edge vectors agree with solders, bumps below 255 included; 16-seed and 33-byte-seed inputs are refused by both."33  },34  {35   "construct": "associatedTokenAccount",36   "location": "Sources/QyvoraSolana/SolanaAddress.swift:149",37   "verdict": "safe",38   "note": "Seeds [owner, token program, mint] under the ATA program. 25 000 random cases and 124 vectors agree with solders by two derivations (find_program_address and solders.token.associated); Token and Token-2022 give distinct accounts."39  },40  {41   "construct": "SolanaKeys.derivationPath: m/44'/501'/account'/0'",42   "location": "Sources/QyvoraSolana/SolanaAddress.swift:169",43   "verdict": "safe",44   "note": "Default path m/44'/501'/0'/0' (Phantom, Solflare, Ledger \"bip44Change\"), every step hardened; the two other styles are selectable by a caller but the wallet service uses the default only. 3 001 random seeds/accounts/styles agree with bip-utils (SLIP-0010) and solders. The recovery sheet prints SolanaKeys.derivationPath().description and the address derived by the same function."45  },46  {47   "construct": "SolanaKeys.privateSeed: SLIP-0010 node wiped",48   "location": "Sources/QyvoraSolana/SolanaAddress.swift:181",49   "verdict": "safe",50   "note": "The node is wiped on every exit path; the returned 32-byte seed is the caller's to erase (documented), and both callers do (SolanaKeys.address, WalletService.signSolana). An account index of 2^31 or more is refused. SLIP-0010 itself belongs to the lead's review."51  },52  {53   "construct": "SolanaCompactU16.decode: strict",54   "location": "Sources/QyvoraSolana/SolanaMessage.swift:73",55   "verdict": "safe",56   "note": "At most three bytes, value below 2^16, no padded form, bounds checked before each read. Exhaustive property: of the 16 843 008 strings of 1, 2 and 3 bytes exactly the 65 536 canonical ones decode entirely; encoding equals solders' short-vec at 20 boundaries."57  },58  {59   "construct": "SolanaMessage.init(feePayer:instructions:recentBlockhash:): compilation",60   "location": "Sources/QyvoraSolana/SolanaMessage.swift:161",61   "verdict": "safe",62   "note": "Fee payer first, then writable signers, read-only signers, writable, read-only, each in byte order; privileges merged by OR; at most 256 keys (indices fit UInt8, checked before the conversions). 15 000 random instruction lists in full mode give the bytes of solders Message.new_with_blockhash; 30 002 cases check the ordering rules directly."63  },64  {65   "construct": "SolanaMessage.decode: strict parsing",66   "location": "Sources/QyvoraSolana/SolanaMessage.swift:273",67   "verdict": "safe",68   "note": "Every read is bounds-checked (take, length); refused: trailing bytes, padded lengths, a version other than 0, no signer, a read-only fee payer, header counts above the keys, more than 256 accounts, a repeated key, a program index out of range or equal to the fee payer, an account index out of range, an empty or repeated lookup table. Allocation is linear in the input. Stricter than solders (bincode): see the policy differences of the report."69  },70  {71   "construct": "SolanaMessage.decode: repeated account keys refused",72   "location": "Sources/QyvoraSolana/SolanaMessage.swift:268",73   "verdict": "safe",74   "note": "solders decodes a message with a repeated key and its sanitize passes (the runtime refuses it later); refused here so that roles shown in a review are unambiguous."75  },76  {77   "construct": "SolanaMessage.decode: program never the fee payer",78   "location": "Sources/QyvoraSolana/SolanaMessage.swift:336",79   "verdict": "safe",80   "note": "A compiled message whose instruction names the fee payer as program is produced by the compiler when a caller asks for it (solders compiles the same bytes) and refused by the decoder; the planner never emits one. Recorded as an asymmetry, not a defect."81  },82  {83   "construct": "SolanaTransaction.decode: signature count equals the required signers",84   "location": "Sources/QyvoraSolana/SolanaMessage.swift:414",85   "verdict": "safe",86   "note": "Size bounded by 1232 before parsing; count × 64 checked against the input; no trailing bytes; signatures are not verified here (verifySignatures). 92 011 cases in full mode against solders VersionedTransaction.from_bytes: accepted here implies accepted, identical fields, canonical bytes and the same signature verdict for solders."87  },88  {89   "construct": "SolanaTransaction.sign",90   "location": "Sources/QyvoraSolana/SolanaMessage.swift:362",91   "verdict": "safe",92   "note": "Signs message.serialize() with the lead's Ed25519; refuses a key that is not a required signer. 30 000 random payments and 15 000 compiled messages: signatures identical to solders (ed25519-dalek) and libsodium."93  },94  {95   "construct": "SolanaTransaction.serialize: packet size",96   "location": "Sources/QyvoraSolana/SolanaMessage.swift:392",97   "verdict": "safe",98   "note": "Throws above 1232 bytes. Policy difference: solders serializes any size (657 such cases in the full campaign, compared field by field)."99  },100  {101   "construct": "SolanaBase64.decode: strict",102   "location": "Sources/QyvoraSolana/SolanaMessage.swift:482",103   "verdict": "safe",104   "note": "Alphabet only, length multiple of four, padding only at the end, canonical trailing bits. Fuzz target solana-base64: accepted implies encode(decode(t)) = t and the same bytes as Foundation."105  },106  {107   "construct": "SolanaDecodedInstruction.decode: exact layouts only",108   "location": "Sources/QyvoraSolana/SolanaInstructions.swift:243",109   "verdict": "safe",110   "note": "Each recognised instruction is recognised only at its exact data length and account count (the guard precedes every read of the data); anything else is `unknown`. The System instruction AdvanceNonceAccount (durable nonce) is not recognised, hence blind. Property (160 002 cases in full mode) and fuzz target solana-instructions."111  },112  {113   "construct": "TransferChecked: decimals and mint are in the signed bytes",114   "location": "Sources/QyvoraSolana/SolanaInstructions.swift:149",115   "verdict": "safe",116   "note": "The planner emits TransferChecked only (never Transfer): the program refuses the instruction when the mint or its decimals differ from what is signed, so decimals forged by an endpoint cannot make the amount shown differ from the amount moved — the transaction fails instead."117  },118  {119   "construct": "SolanaTransactionReview.requiresBlindSigning",120   "location": "Sources/QyvoraSolana/SolanaInstructions.swift:323",121   "verdict": "safe",122   "note": "True when one instruction is unknown or when accounts come from an address lookup table (their addresses are not in the bytes). The cold path refuses such a transaction unless blind signing is allowed explicitly, and an unaudited mainnet build refuses it whatever is passed."123  },124  {125   "construct": "SolanaMemoProgram.isDisplayable / displayText",126   "location": "Sources/QyvoraSolana/SolanaInstructions.swift:70",127   "verdict": "fixed",128   "note": "Control, format (bidirectional, zero-width), separator, private-use and unassigned characters are refused in a planned memo and escaped in the summary of a decoded one.",129   "finding_id": "QYV-SVC-024"130  },131  {132   "construct": "SolanaSendPlanner.plan: reserve arithmetic",133   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:357",134   "verdict": "fixed",135   "note": "fee + creationCost + rent now saturates. Every other sum of the planner uses addingReportingOverflow or operands already bounded (fee ≤ 10 005 000; subtractions guarded by the preceding comparison).",136   "finding_id": "QYV-SVC-020"137  },138  {139   "construct": "SolanaSendPlanner.plan: priority-fee ceiling",140   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:270",141   "verdict": "safe",142   "note": "⌈limit × price / 10^6⌉ computed with overflow detection; refused above 0.01 SOL on every cluster; limit within 1 … 1 400 000. Property: 400 001 cases in full mode against a 128-bit computation."143  },144  {145   "construct": "SolanaSendPlanner.plan: send-max",146   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:290",147   "verdict": "safe",148   "note": "SOL: balance − fee, the account is left empty (warning emptiesSender); token: the whole token balance. Never above the balance; the recipient must end rent-exempt; the sender ends empty or rent-exempt. Property: 200 000 cases in full mode."149  },150  {151   "construct": "SolanaSendPlanner.plan: recipient that is not a wallet",152   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:253",153   "verdict": "safe",154   "note": "A recipient that exists and is not owned by the System program (token account, mint, program state) is refused; reserved addresses and the mint itself are refused without the network. Depends on the endpoint's getAccountInfo: a lying endpoint can answer \"missing\" (see endpoint_impact)."155  },156  {157   "construct": "SolanaSendPlanner.plan: off-curve recipient",158   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:257",159   "verdict": "safe",160   "note": "Warning recipientOffCurve, shown as critical by the service; not refused (a program-derived address can legitimately receive). The interface must make it count: QYV-APP-020.",161   "finding_id": "QYV-APP-020"162  },163  {164   "construct": "SolanaSendPlanner.plan: Token-2022 extensions",165   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:311",166   "verdict": "safe",167   "note": "A Token-2022 mint is sendable only when every extension the node reports is in a fixed harmless list; transfer fee, transfer hook, confidential transfer, non-transferable, default account state, pausable, interest-bearing and scaled-amount mints, and any unknown extension, are refused by name. The list is as the endpoint reports it: an endpoint that hides `transferFeeConfig` makes the recipient receive less than shown (TransferChecked still succeeds); see endpoint_impact."168  },169  {170   "construct": "SolanaSendPlan: no public initializer, constant properties",171   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:174",172   "verdict": "safe",173   "note": "A caller of the library cannot build or alter a plan (memberwise initializer is internal, every property is `let`); the same holds for SolanaSendDetails and SendReview. Since QYV-SVC-023 the service also checks the bytes against the review."174  },175  {176   "construct": "SolanaRPC.snapshot: associated token account answer",177   "location": "Sources/QyvoraSolana/SolanaSendPlanner.swift:398",178   "verdict": "safe",179   "note": "The sender's token account read at the derived address must name the requested mint and the sender as owner."180  },181  {182   "construct": "SolanaRPC.call: first answer wins",183   "location": "Sources/QyvoraSolana/SolanaRPC.swift:175",184   "verdict": "reviewed",185   "note": "Reads go to the endpoints in order; the first that answers is believed, a JSON-RPC error is an answer. No quorum on balances, account data, rent, fees, blockhash or history. Bounded: response size (8 MiB), id echo, exact integers. What one lying endpoint can do is listed in endpoint_impact."186  },187  {188   "construct": "SolanaRPC.call: response bounded",189   "location": "Sources/QyvoraSolana/SolanaRPC.swift:156",190   "verdict": "safe",191   "note": "On top of the transport limit; error texts truncated to 300 characters, values quoted in errors to 200."192  },193  {194   "construct": "SolanaRPC.verifyChain: genesis hash",195   "location": "Sources/QyvoraSolana/SolanaRPC.swift:218",196   "verdict": "safe",197   "note": "Every endpoint that answers must return the genesis hash of the cluster, and at least one must answer; run once per session and endpoint list. It detects a misconfiguration (a mainnet URL under devnet), not a lying endpoint, which answers the expected hash."198  },199  {200   "construct": "SolanaRPC.send: every endpoint, identifier computed locally",201   "location": "Sources/QyvoraSolana/SolanaRPC.swift:448",202   "verdict": "safe",203   "note": "The signed bytes go to every endpoint; the identifier is the first signature, computed locally, and an endpoint that returns another one is counted as failed. Sending the same bytes again is harmless (one signature, one execution)."204  },205  {206   "construct": "SolanaRPC.track: unanimous verdict",207   "location": "Sources/QyvoraSolana/SolanaRPC.swift:523",208   "verdict": "fixed",209   "note": "Every endpoint is asked; expired, failed and included need agreement of all that answer.",210   "finding_id": "QYV-SVC-021"211  },212  {213   "construct": "SolanaRPC.isRecentBlockhash",214   "location": "Sources/QyvoraSolana/SolanaRPC.swift:548",215   "verdict": "fixed",216   "note": "Asks every endpoint of the cluster; one \"yes\" is enough, no answer is an error.",217   "finding_id": "QYV-SVC-022"218  },219  {220   "construct": "SolanaRPC.tokenAccounts: owner check and cap",221   "location": "Sources/QyvoraSolana/SolanaRPC.swift:316",222   "verdict": "safe",223   "note": "An endpoint cannot slip in the accounts of another owner; at most 1000 accounts; state text truncated."224  },225  {226   "construct": "SolanaFees.suggestedUnitPrice",227   "location": "Sources/QyvoraSolana/SolanaRPC.swift:582",228   "verdict": "safe",229   "note": "The 75th percentile of the endpoint's sample, clamped to 5 000 … 2 000 000 micro-lamports: with the default limits the priority fee stays at or below 0.0003 SOL whatever the endpoint answers."230  },231  {232   "construct": "SolanaJSON.parse: strict, bounded depth, exact integers",233   "location": "Sources/QyvoraSolana/SolanaJSON.swift:270",234   "verdict": "safe",235   "note": "RFC 8259 reader over bytes, depth 64, duplicate keys refused, numbers kept as text (uint64 only for plain digits that fit). Linear allocation. Fuzz targets solana-json and solana-json-rpc."236  },237  {238   "construct": "SolanaHistory.entry",239   "location": "Sources/QyvoraSolana/SolanaHistory.swift:85",240   "verdict": "safe",241   "note": "Balance changes read from pre/post balances; counts bounded (512 keys, 1024 token balances), sums overflow-checked, the transaction must carry the requested signature. Not authenticated: history is what the endpoint says (display only)."242  },243  {244   "construct": "Genesis hashes of the three clusters",245   "location": "Sources/QyvoraSolana/SolanaNetwork.swift:65",246   "verdict": "safe",247   "note": "mainnet-beta 5eykt4Us…, devnet EtWTRABZ…, testnet 4uhcVJyU…: the values of the Solana documentation, read again by the audit from api.mainnet-beta.solana.com, solana-rpc.publicnode.com, api.devnet.solana.com and api.testnet.solana.com on 2026-12-05 (getGenesisHash; no wallet data sent)."248  },249  {250   "construct": "Default endpoints",251   "location": "Sources/QyvoraSolana/SolanaNetwork.swift:90",252   "verdict": "reviewed",253   "note": "Two operators on mainnet-beta, one on devnet and one on testnet: on the test clusters every answer is one party's word.",254   "finding_id": "QYV-APP-021"255  },256  {257   "construct": "WalletService.solanaAccount: mainnet gate",258   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:71",259   "verdict": "safe",260   "note": "Every Solana operation of the service starts here or in verifiedSolana: mainnet-beta is refused unless MainnetPolicy.mainnetEnabled (audit completed, or internal build AND user opt-in)."261  },262  {263   "construct": "WalletService.prepareSolanaSend: rent ceiling",264   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:428",265   "verdict": "safe",266   "note": "Rent minimums from the endpoint must be positive and at most 0.01 SOL (MainnetPolicy.solanaAccountCreationLamportsCeiling), on every cluster: a forged rent cannot lock more than that in a new token account."267  },268  {269   "construct": "WalletService.requireSolanaPayment",270   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:489",271   "verdict": "fixed",272   "note": "The review is checked against the decoded bytes at prepare and before signing.",273   "finding_id": "QYV-SVC-023"274  },275  {276   "construct": "WalletService.requireNotValidOnMainnet",277   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:540",278   "verdict": "fixed",279   "note": "Test-cluster transactions are checked against mainnet-beta at prepare, at sign and before a cold-signed broadcast.",280   "finding_id": "QYV-SVC-022"281  },282  {283   "construct": "WalletService.enforceUnauditedSolanaLimits",284   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:609",285   "verdict": "safe",286   "note": "Computed from the decoded bytes (solanaOutflow), at prepare, in signSolana (hot and cold) and before a cold-signed broadcast: priority fee ≤ 0.01 SOL on every cluster; on unaudited mainnet no undecodable instruction, nothing but a plain payment, at most one account creation, SOL ≤ 150 USD at a fresh price, each token ≤ 150 USD at a fresh price with the list decimals equal to the signed decimals, no price → no transaction."287  },288  {289   "construct": "WalletService.signSolana: seed handling",290   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:659",291   "verdict": "safe",292   "note": "The BIP-39 seed exists inside withSeed only (its buffers are zeroed on every exit path); the 32-byte Ed25519 seed is zeroed by defer on every path including throws; nothing is captured by an escaping closure or a Task, converted to String or Data, or logged; the closure returns the signed transaction only. Needs an unlocked vault and a fresh authentication (withSeed)."293  },294  {295   "construct": "WalletService.signSolana: sole signer, key bound to the vault, signature verified",296   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:667",297   "verdict": "safe",298   "note": "The wallet account must be the fee payer and the only signer; the derived key must be the account of the profile and of the vault; after signing, the signature verifies, the message is unchanged and the transaction decodes back to itself."299  },300  {301   "construct": "WalletService.signAndBroadcastSolana: signed once",302   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:708",303   "verdict": "safe",304   "note": "A review is signed once; asking again sends the same signed bytes. The blockhash must still be valid and the transaction is simulated again before signing. Server-provided bytes are never signed: the transaction is the planner's, held in the review."305  },306  {307   "construct": "WalletService.trackSolana: settled on expired/failed/included",308   "location": "Sources/QyvoraWallet/WalletService+Solana.swift:739",309   "verdict": "reviewed",310   "note": "Settling releases the same-payment guard; the verdict now needs every endpoint (QYV-SVC-021). The register is in memory and does not cover cold broadcasts.",311   "finding_id": "QYV-SVC-025"312  },313  {314   "construct": "WalletService.decodeSolana (cold payload): canonical bytes",315   "location": "Sources/QyvoraWallet/WalletService+Cold.swift:104",316   "verdict": "safe",317   "note": "The payload of a cold envelope must be strict base64 of a transaction that serializes back to the same bytes; the review shown on the cold device is the decoding of those bytes, and signSolana signs the same value."318  },319  {320   "construct": "WalletService.signColdTransaction: blind signing explicit",321   "location": "Sources/QyvoraWallet/WalletService+Cold.swift:267",322   "verdict": "safe",323   "note": "An undecodable transaction is refused unless the caller allows blind signing; on unaudited mainnet it is refused whatever is passed (limits), and so is any mainnet Solana payment on a cold device (no fresh price offline)."324  },325  {326   "construct": "WalletService.coldSolanaReview: cross-cluster warning",327   "location": "Sources/QyvoraWallet/WalletService+Cold.swift:128",328   "verdict": "fixed",329   "note": "Shown on a test cluster: an offline device cannot check the blockhash.",330   "finding_id": "QYV-SVC-022"331  },332  {333   "construct": "WalletService.checkAddress (Solana)",334   "location": "Sources/QyvoraWallet/WalletService+Send.swift:318",335   "verdict": "safe",336   "note": "Strict base58, reserved addresses refused, notes \"no checksum\" and \"not a wallet key\" (off-curve), own address flagged. A text of another family is refused with its family named (classifyForeign); a 32-byte base58 text that is also something else does not exist among the supported families (EVM is hex, TRON and Bitcoin base58check decode to 25 bytes)."337  },338  {339   "construct": "WalletService.withSeed",340   "location": "Sources/QyvoraWallet/WalletService.swift:437",341   "verdict": "safe",342   "note": "Phrase, passphrase and seed buffers are zeroed on every exit path; the body is non-escaping. (Shared code; reviewed here only as the entry of the Solana signing path.)"343  }344 ],345 "endpoint_impact": [346  {347   "capability": "Wrong SOL or token balance, forged token accounts",348   "wallet_does": "Shows what the first endpoint that answers says (no quorum); token accounts of another owner are refused; sums overflow-checked.",349   "impact": "Wrong display. A send computed on a forged balance fails at the simulation of an honest node or on chain; nothing is lost beyond the fee of a failed transaction.",350   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:316",351   "residual_risk": "Display is one party's word; with two mainnet endpoints the second is asked only when the first does not answer."352  },353  {354   "capability": "Censored broadcast, or a broadcast claimed and not made",355   "wallet_does": "Sends the signed bytes to every endpoint and computes the identifier locally; a pending transaction blocks the same payment.",356   "impact": "Delay. With a single endpoint the payment is never relayed and expires; nothing is lost.",357   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:448",358   "residual_risk": "Single-endpoint clusters (devnet and testnet by default): censorship is not detectable."359  },360  {361   "capability": "Forged blockhash: old, unknown, or of another cluster",362   "wallet_does": "Uses the blockhash of the first endpoint; simulates; before preparing, signing or relaying a test-cluster transaction asks mainnet-beta whether it knows the blockhash.",363   "impact": "Unknown blockhash: the transaction never lands (BlockhashNotFound) and nothing is lost. Old blockhash: shorter validity. A durable-nonce replay is not possible: a nonce transaction needs AdvanceNonceAccount as first instruction, which the planner never emits and the cold review treats as unknown (blind). Mainnet blockhash on a test cluster: was a cross-cluster replay with real funds, now refused.",364   "mitigation": "Sources/QyvoraWallet/WalletService+Solana.swift:540",365   "residual_risk": "A lagging or lying mainnet-beta endpoint at the instant of the check; a cold device behind a compromised online device (warning only). QYV-SVC-022."366  },367  {368   "capability": "Forged lastValidBlockHeight or block height",369   "wallet_does": "Refuses to sign when the endpoint says the blockhash expired; declares a sent transaction expired only on the unanimous finalized height of the endpoints.",370   "impact": "Too low: the wallet refuses to sign a valid transaction (delay). Too high or a hidden inclusion: was a path to a double payment, now needs every endpoint.",371   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:538",372   "residual_risk": "A single endpoint decides alone. QYV-SVC-021, QYV-APP-021."373  },374  {375   "capability": "Forged rent-exemption minimum",376   "wallet_does": "Refuses minimums that are zero or above 0.01 SOL on every cluster; the planner saturates.",377   "impact": "Too high (≤ 0.01 SOL): up to 0.01 SOL locked in the recipient's new token account instead of about 0.002 (it stays the recipient's). Too low: the transaction fails on chain (fee lost).",378   "mitigation": "Sources/QyvoraWallet/WalletService+Solana.swift:428",379   "residual_risk": "Up to 0.01 SOL per created token account."380  },381  {382   "capability": "Forged fee data (recent prioritization fees)",383   "wallet_does": "Clamps the suggested price to 5 000 … 2 000 000 micro-lamports; refuses any priority fee above 0.01 SOL at prepare and at sign.",384   "impact": "At most about 0.0003 SOL of priority fee with the default limits; 0.01 SOL if the caller sets the price itself.",385   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:582",386   "residual_risk": "None beyond the ceiling."387  },388  {389   "capability": "Forged mint data: decimals, token program, hidden Token-2022 extensions",390   "wallet_does": "Signs TransferChecked with the decimals and under the program the endpoint reported; shows the amount with those decimals; refuses listed-token decimals that differ on mainnet limits.",391   "impact": "Wrong decimals or program: the transaction fails on chain (the program checks them) — no loss. A hidden `transferFeeConfig` or `transferHook`: the transfer succeeds and the recipient receives less than shown, or a hook runs; a hidden `permanentDelegate` removes a warning.",392   "mitigation": "Sources/QyvoraSolana/SolanaTokens.swift:117",393   "residual_risk": "Token-2022 extension policy rests on one endpoint's honesty. SPL Token (USDC, USDT) has no extensions and is not affected."394  },395  {396   "capability": "Forged getAccountInfo for the recipient or its associated token account",397   "wallet_does": "Recipient reported missing: warns \"new account\"; reported as a non-wallet: refuses. ATA reported missing: adds CreateIdempotent (does nothing if it exists). ATA reported present: no creation.",398   "impact": "A token account or mint pasted as SOL recipient and reported \"missing\": lamports are added to that account (recoverable only by its owner). ATA wrongly \"present\": TransferChecked fails on chain (fee lost). ATA wrongly \"missing\": an idempotent creation that does nothing; nothing is lost.",399   "mitigation": "Sources/QyvoraSolana/SolanaSendPlanner.swift:253",400   "residual_risk": "The off-curve warning still fires for a token account pasted as recipient (token accounts are off-curve); mints created from a key pair are on-curve and would not be flagged."401  },402  {403   "capability": "Forged simulation result",404   "wallet_does": "Refuses to prepare or sign when the simulation fails; a simulation cannot change the message.",405   "impact": "\"Failure\" claimed: denial of service. \"Success\" claimed: the transaction is signed as reviewed and fails on chain if it had to (fee lost).",406   "mitigation": "Sources/QyvoraWallet/WalletService+Solana.swift:716",407   "residual_risk": "The simulation is a courtesy of the endpoint, not a guarantee; nothing in the signed bytes depends on it."408  },409  {410   "capability": "Forged history",411   "wallet_does": "Shows balance changes of the endpoint's getTransaction answers, bound to the requested signature; marks nothing as verified.",412   "impact": "Wrong activity list (a fake incoming payment). No effect on what is signed.",413   "mitigation": "Sources/QyvoraSolana/SolanaHistory.swift:85",414   "residual_risk": "History is not authenticated. The interface should not present it as proof of payment."415  },416  {417   "capability": "Wrong cluster behind a URL (misconfiguration or deliberate)",418   "wallet_does": "Checks the genesis hash of every endpoint once per session and endpoint list.",419   "impact": "A misconfigured endpoint is refused (`wrongChain`). A deliberate one answers the expected hash; what protects funds is the blockhash check above.",420   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:218",421   "residual_risk": "The genesis check is not an authentication."422  },423  {424   "capability": "Observation",425   "wallet_does": "Sends the account address and, for a test-cluster signature, the blockhash to the mainnet-beta endpoints.",426   "impact": "The endpoints learn which address this IP queries.",427   "mitigation": "Sources/QyvoraSolana/SolanaRPC.swift:122",428   "residual_risk": "Privacy only; no key material, no amount beyond the transaction itself."429  }430 ],431 "replay_protection": {432  "mechanism": "A Solana transaction is bound to a recent blockhash and can be included only while that blockhash is among the last 150 of the cluster (lastValidBlockHeight, about one to two minutes); the cluster refuses a signature it has already processed. There is no chain identifier in the signed bytes.",433  "cross_cluster": "The same key controls the account on mainnet-beta, devnet and testnet. A blockhash of one cluster is not valid on another unless an endpoint supplies it on purpose: QYV-SVC-022, now checked against mainnet-beta before a test-cluster transaction is prepared, signed or relayed (Sources/QyvoraWallet/WalletService+Solana.swift:540).",434  "durable_nonce": "Not used. A durable-nonce transaction (never expires) requires the System instruction AdvanceNonceAccount as its first instruction; the planner never emits it and the decoder does not recognise it, so a foreign transaction that carries it requires explicit blind signing (Sources/QyvoraSolana/SolanaInstructions.swift:323).",435  "last_valid_block_height": "Kept in the plan and in the sent-transaction register; a review whose blockhash expired is not signed (Sources/QyvoraWallet/WalletService+Solana.swift:712); a sent transaction is declared expired only when every endpoint that answers reports a finalized height above it and none knows the signature (Sources/QyvoraSolana/SolanaRPC.swift:523). For a cold-signed transaction the height is not in the bytes: the online device uses its current height + 150 as an upper bound.",436  "rebroadcast": "A review is signed once (Sources/QyvoraWallet/WalletService+Solana.swift:708); asking again re-sends the same signed bytes, which can be executed once. A new transaction for the same payment (chain, recipient, asset, amount) is refused while the first is pending (Sources/QyvoraWallet/WalletService+Solana.swift:711).",437  "residual_risk": "A signed transaction stays valid for about 150 blocks whatever the wallet does: a user who signs a second, different payment to the same recipient in that window pays twice by design. The same-payment guard is per session, in memory, and does not cover cold broadcasts (QYV-SVC-025). With a single endpoint the expiry verdict is one party's word (QYV-SVC-021 residual). Send-max is not covered by the guard (its amount is computed)."438 },439 "wallet_audit_items": [440  {441   "id": "WA-SOL-01",442   "title": "Solana key derivation and recovery sheet",443   "group": "recovery-phrase",444   "verdict": "pass",445   "scope": "service",446   "rationale": "The account key is the SLIP-0010 Ed25519 key at m/44'/501'/0'/0' of the BIP-39 seed (the default of Phantom, Solflare and Ledger); the recovery sheet prints the path from the same function and the address derived by the same code, with the note that the address is the public key. Differential: 3 001 random seeds, accounts and styles agree with bip-utils and solders; five vectors of the module derived again.",447   "evidence": [448    {449     "ref": "Sources/QyvoraSolana/SolanaAddress.swift:169",450     "contains": "case .bip44Change: return DerivationPath([.hardened(44), .hardened(SolanaNetwork.coinType), .hardened(account), .hardened(0)])"451    },452    {453     "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:425",454     "contains": "chain: \"Solana\", networks: \"mainnet-beta, devnet and testnet: the same address\", derivationPath: SolanaKeys.derivationPath().description"455    },456    {457     "ref": "security/tests/Tests/DifferentialAuditTests/SolanaDiffTests.swift:240",458     "contains": "func accountDerivation()"459    }460   ]461  },462  {463   "id": "WA-SOL-02",464   "title": "Solana signing key in memory",465   "group": "key-storage",466   "verdict": "pass",467   "scope": "service",468   "rationale": "The BIP-39 seed exists only inside withSeed (vault unlocked, fresh authentication) and is zeroed on every exit path; the SLIP-0010 node is wiped; the 32-byte Ed25519 seed is zeroed by defer, including when the key does not match the account or signing throws. Nothing is captured by an escaping closure, converted to text or logged. Limits of the claim: Swift arrays may leave copies the language does not let the code reach (see the memory-hygiene review), and the Ed25519 primitive is reviewed separately.",469   "residual_risk": "Copies made by the Swift runtime are outside the control of the code.",470   "evidence": [471    {472     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:659",473     "contains": "defer { SecureMemory.zero(&secret) }"474    },475    {476     "ref": "Sources/QyvoraSolana/SolanaAddress.swift:181",477     "contains": "defer { node.wipe() }"478    },479    {480     "ref": "Sources/QyvoraWallet/WalletService.swift:437",481     "contains": "defer { SecureMemory.zero(&seed) }"482    }483   ]484  },485  {486   "id": "WA-SOL-03",487   "title": "Solana address validation and cross-family confusion",488   "group": "fraud-protection",489   "verdict": "partial",490   "scope": "both",491   "rationale": "Strict base58 of exactly 32 bytes (no trimming), programs, sysvars and the wrapped-SOL mint refused, a text of another family refused with its family named; notes for \"no checksum\" and for an address that is not a curve point; the planner refuses a recipient that exists and is not a wallet, and warns on off-curve, new and first-time recipients. 70 072 addresses and texts in full mode agree with solders. A Solana address has no checksum: the protection against a mistyped or substituted address is the comparison the interface makes the user do.",492   "gap": "No checksum exists in the format; the interface must show the notes, the full address and block on critical warnings.",493   "finding": "QYV-APP-020",494   "evidence": [495    {496     "ref": "Sources/QyvoraSolana/SolanaAddress.swift:63",497     "contains": "guard (32...44).contains(text.utf8.count), let decoded = Base58.bitcoin.decode(text), decoded.count == 32 else { return nil }"498    },499    {500     "ref": "Sources/QyvoraWallet/WalletService+Send.swift:318",501     "contains": "guard !SolanaProgram.reserved.contains(key) else { throw WalletError.address(.unsupported(\"This is a Solana program, not a wallet: funds sent there are lost.\")) }"502    },503    {504     "ref": "Sources/QyvoraWallet/WalletService+Send.swift:320",505     "contains": "if !key.isOnCurve { notes.append("506    },507    {508     "ref": "Sources/QyvoraSolana/SolanaSendPlanner.swift:253",509     "contains": "if case .other(let owner) = snapshot.recipient { throw .recipientIsNotAWallet(owner: owner) }"510    },511    {512     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:447",513     "contains": "id: \"solana.off-curve\""514    }515   ]516  },517  {518   "id": "WA-SOL-04",519   "title": "Solana: what is shown is what is signed",520   "group": "fraud-protection",521   "verdict": "pass",522   "scope": "service",523   "rationale": "The transaction is built locally by the planner (never taken from a server), the review is checked against the decoding of its bytes when it is made and again before signing (QYV-SVC-023), the signature covers message.serialize() of that very value and the signed transaction must decode back to the reviewed message. Tokens move by TransferChecked: mint and decimals are in the signed bytes, so metadata forged by an endpoint cannot make the amount shown differ from the amount moved. On a cold device the review is the decoding of the received bytes, which must be canonical. 30 000 random payments are byte-identical to solders; fuzz targets solana-review and solana-message check that what is reviewed re-encodes to the bytes received.",524   "finding": "QYV-SVC-023",525   "evidence": [526    {527     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:489",528     "contains": "static func requireSolanaPayment(_ transaction: SolanaTransaction, matches review: SendReview, owner: SolanaPublicKey) throws {"529    },530    {531     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:721",532     "contains": "try Self.requireSolanaPayment(details.plan.transaction, matches: review, owner: owner)"533    },534    {535     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:667",536     "contains": "guard signed.isFullySigned, signed.verifySignatures(), signed.message == transaction.message, signed.id != nil,"537    },538    {539     "ref": "Sources/QyvoraWallet/WalletService+Cold.swift:104",540     "contains": "guard let bytes = SolanaBase64.decode(payload), let tx = try? SolanaTransaction.decode(bytes), (try? tx.serialize()) == bytes else {"541    },542    {543     "ref": "Sources/QyvoraSolana/SolanaInstructions.swift:149",544     "contains": "], data: [12] + Endian.le64(amount) + [decimals])"545    },546    {547     "ref": "Tests/QyvoraWalletTests/SolanaAuditRegressionTests.swift:146",548     "contains": "func aReviewThatDoesNotMatchItsBytesIsNeverSigned()"549    }550   ]551  },552  {553   "id": "WA-SOL-05",554   "title": "Solana blind signing",555   "group": "fraud-protection",556   "verdict": "pass",557   "scope": "service",558   "rationale": "Only exact layouts of the System, Compute Budget, Token, Token-2022, Associated Token Account and Memo programs are recognised; any other program or layout, and any account taken from an address lookup table, makes the review blind. The hot path signs only the planner's payments; the cold path refuses a blind transaction unless blind signing is allowed explicitly, flags a decodable transaction that is not a payment as critical, and on an unaudited mainnet build signs nothing it cannot decode entirely. Memos cannot disguise a review (QYV-SVC-024).",559   "finding": "QYV-SVC-024",560   "evidence": [561    {562     "ref": "Sources/QyvoraSolana/SolanaInstructions.swift:323",563     "contains": "public var requiresBlindSigning: Bool { usesAddressLookupTables || instructions.contains(where: \\.isUnknown) }"564    },565    {566     "ref": "Sources/QyvoraWallet/WalletService+Cold.swift:267",567     "contains": "if review.requiresBlindSigning, !allowBlindSigning {"568    },569    {570     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:615",571     "contains": "guard !outflow.blind else { throw WalletError.unauditedLimitUnverifiable(\"On mainnet this build does not sign a Solana transaction it cannot decode entirely.\") }"572    },573    {574     "ref": "Tests/QyvoraSolanaTests/SolanaAuditRegressionTests.swift:183",575     "contains": "func memosCannotDisguiseTheReview()"576    }577   ]578  },579  {580   "id": "WA-SOL-06",581   "title": "Solana replay protection and cluster binding",582   "group": "replay-protection",583   "verdict": "partial",584   "scope": "service",585   "rationale": "Replay on the same cluster is prevented by the protocol (recent blockhash, about 150 blocks; a processed signature is refused) and by the service (a review is signed once and re-sent as the same bytes; the same payment is refused while one is pending; an expired review is not signed). Durable nonces are not used and a foreign nonce transaction is blind. A Solana transaction carries no cluster identifier and the account is the same key on every cluster: a test-cluster transaction is now checked against mainnet-beta before it is prepared, signed or relayed (QYV-SVC-022).",586   "gap": "The cross-cluster check depends on an honest, up-to-date mainnet-beta endpoint and cannot be made by an offline device; the same-payment guard is per session and does not cover cold broadcasts.",587   "residual_risk": "A signed transaction stays valid for about 150 blocks; see replay_protection.residual_risk.",588   "finding": "QYV-SVC-022, QYV-SVC-025",589   "evidence": [590    {591     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:540",592     "contains": "func requireNotValidOnMainnet(_ transaction: SolanaTransaction, network: SolanaNetwork) async throws {"593    },594    {595     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:708",596     "contains": "if let id = signedReviews[review.id], let sent = sentTransactions[id], let again = try? SolanaTransaction.decode(sent.signed) {"597    },598    {599     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:712",600     "contains": "guard try await rpc.blockHeight() <= details.lastValidBlockHeight else {"601    },602    {603     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:523",604     "contains": "default: return .pending"605    },606    {607     "ref": "Tests/QyvoraWalletTests/SolanaAuditRegressionTests.swift:56",608     "contains": "func aTestClusterTransactionValidOnMainnetIsNeverSigned()"609    },610    {611     "ref": "Tests/QyvoraSolanaTests/SolanaAuditRegressionTests.swift:124",612     "contains": "func oneEndpointCannotDeclareALiveTransactionDeadOrFailed()"613    }614   ]615  },616  {617   "id": "WA-SOL-07",618   "title": "Solana fees: ceiling and rent",619   "group": "fees-nonces-utxos",620   "verdict": "pass",621   "scope": "service",622   "rationale": "Signature fee 5 000 lamports; priority fee = ⌈limit × price / 10^6⌉ computed with overflow detection, refused above 0.01 SOL at prepare and at sign on every cluster; the suggested price is clamped to 5 000 … 2 000 000 micro-lamports whatever the endpoint reports; rent minimums from the endpoint must be positive and at most 0.01 SOL; the planner computes on any 64-bit figure without overflow (QYV-SVC-020), never spends more than the balance and leaves the sender empty or rent-exempt; send-max transfers exactly balance − fee. Properties: 200 001 planner cases, 400 001 fee cases, 200 000 send-max cases in full mode; fuzz target solana-planner.",623   "finding": "QYV-SVC-020",624   "evidence": [625    {626     "ref": "Sources/QyvoraSolana/SolanaSendPlanner.swift:234",627     "contains": "public static let maximumPriorityFee: UInt64 = 10_000_000"628    },629    {630     "ref": "Sources/QyvoraSolana/SolanaSendPlanner.swift:270",631     "contains": "guard priorityFee <= maximumPriorityFee else { throw .priorityFeeTooHigh(lamports: priorityFee) }"632    },633    {634     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:612",635     "contains": "guard outflow.priorityFee <= SolanaSendPlanner.maximumPriorityFee else { throw WalletError.solana(.priorityFeeTooHigh(lamports: outflow.priorityFee)) }"636    },637    {638     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:428",639     "contains": "guard snapshot.systemAccountRent > 0, snapshot.systemAccountRent <= ceiling, (snapshot.token?.tokenAccountRent ?? 0) <= ceiling else {"640    },641    {642     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:582",643     "contains": "return min(maximumUnitPrice, max(minimumUnitPrice, percentile))"644    },645    {646     "ref": "Tests/QyvoraSolanaTests/SolanaAuditRegressionTests.swift:64",647     "contains": "func hostileRentAndBalancesNeverTrapThePlanner()"648    }649   ]650  },651  {652   "id": "WA-SOL-08",653   "title": "Solana per-transaction limits of an unaudited build",654   "group": "mainnet-gate",655   "verdict": "pass",656   "scope": "service",657   "rationale": "On mainnet-beta an unaudited build signs only a plain payment it decodes entirely, with SOL ≤ 150 USD and each token ≤ 150 USD at a fresh price (no price, no transaction), a priority fee ≤ 0.01 SOL and at most one token-account creation. The figures are computed from the decoded bytes — not from the plan — when the transaction is prepared, in the signing function itself (hot and cold) and before a cold-signed broadcast. A plan or a review above the ceiling cannot be built through the public interface (no public initializer, constant properties), and one forged through the module-internal initializers is still refused.",658   "residual_risk": "The limits bound one transaction, not the balance; they do not apply to test clusters (hence QYV-SVC-022).",659   "evidence": [660    {661     "ref": "Sources/QyvoraCore/Networks.swift:945",662     "contains": "public static let solanaLimits = AccountChainLimits(nativeUSDPerTransaction: limits.nativeUSDPerTransaction, feePerTransaction: 10_000_000)"663    },664    {665     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:432",666     "contains": "try await enforceUnauditedSolanaLimits(plan.transaction, network: network, owner: sender)"667    },668    {669     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:656",670     "contains": "try await enforceUnauditedSolanaLimits(transaction, network: network, owner: owner)"671    },672    {673     "ref": "Sources/QyvoraWallet/WalletService+Cold.swift:319",674     "contains": "try await enforceUnauditedSolanaLimits(tx, network: network, owner: owner)"675    },676    {677     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:628",678     "contains": "guard outflow.lamports <= ceiling else {"679    },680    {681     "ref": "Tests/QyvoraWalletTests/SolanaAuditRegressionTests.swift:211",682     "contains": "func aSolanaTransactionAboveTheCeilingIsNeverSignedWhateverThePlanSays()"683    },684    {685     "ref": "Tests/QyvoraWalletTests/MultiChainSendTests.swift:695",686     "contains": "func solanaLimitsApplyWhenPreparingAndWhenSigning()"687    }688   ]689  },690  {691   "id": "WA-SOL-09",692   "title": "Solana mainnet gate (both conditions)",693   "group": "mainnet-gate",694   "verdict": "pass",695   "scope": "service",696   "rationale": "Every Solana operation on mainnet-beta passes requireAllowed: refused unless the audit is recorded as completed, or the build is internal AND the user switched mainnet on. The account and the client are obtained only through functions that call it. A test-cluster signature can no longer be turned into a mainnet one by a test endpoint (QYV-SVC-022).",697   "evidence": [698    {699     "ref": "Sources/QyvoraWallet/WalletService+Solana.swift:71",700     "contains": "try requireAllowed(.solana(network))"701    },702    {703     "ref": "Sources/QyvoraWallet/WalletService.swift:341",704     "contains": "if !kind.isTest, !MainnetPolicy.mainnetEnabled { throw WalletError.mainnetDisabled(WalletError.mainnetText) }"705    },706    {707     "ref": "Sources/QyvoraCore/Networks.swift:558",708     "contains": "return auditCompleted || (internalBuild && userOptIn)"709    },710    {711     "ref": "Tests/QyvoraWalletTests/MultiChainSendTests.swift:635",712     "contains": "func theNetworkModeNeedsBothConditionsAndMovesEveryChain()"713    }714   ]715  },716  {717   "id": "WA-SOL-10",718   "title": "Solana endpoint policy",719   "group": "network",720   "verdict": "partial",721   "scope": "both",722   "rationale": "JSON-RPC over the shared transport (https, or http for local hosts only); answers bounded (8 MiB, capped lists, truncated texts), integers read exactly, strict JSON with bounded depth; the genesis hash of every endpoint is checked once per session. Reads take the first answer (no quorum); broadcasts go to every endpoint with a locally computed identifier; the expiry/failure verdict of a sent transaction and the mainnet blockhash check ask every endpoint. What one lying endpoint can do is bounded by the simulation, the on-chain checks of TransferChecked, the rent and fee ceilings and those two cross-checks; it can still show wrong balances and history, censor, and — for Token-2022 — hide an extension.",723   "gap": "No quorum on reads; one default endpoint on devnet and on testnet; Token-2022 extension policy rests on one endpoint.",724   "finding": "QYV-APP-021",725   "evidence": [726    {727     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:175",728     "contains": "return try await call(method, params, on: endpoint)"729    },730    {731     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:218",732     "contains": "guard text == network.genesisHash else {"733    },734    {735     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:448",736     "contains": "guard result.string == id else { throw NetworkError.invalidResponse(\"sendTransaction returned another identifier\") }"737    },738    {739     "ref": "Sources/QyvoraSolana/SolanaRPC.swift:156",740     "contains": "guard data.count <= Self.maximumResponseBytes else {"741    },742    {743     "ref": "Sources/QyvoraSolana/SolanaNetwork.swift:90",744     "contains": "\"devnet\": [\"https://api.devnet.solana.com\"],"745    },746    {747     "ref": "Sources/QyvoraSolana/SolanaJSON.swift:270",748     "contains": "guard depthLeft > 0 else { return nil }"749    }750   ]751  },752  {753   "id": "WA-SOL-11",754   "title": "Solana: the address is the public key (post-quantum scope)",755   "group": "post-quantum-scope",756   "verdict": "pass",757   "scope": "service",758   "rationale": "A Solana address is the Ed25519 public key itself: it is public as soon as the address is shared or used, unlike a hashed address. Ed25519 offers no protection against a quantum adversary and nothing in QYVORA changes that for Solana transactions; the service states it in the exposure note of the chain. The post-quantum algorithms of the wallet protect local storage, backups and transfers only.",759   "evidence": [760    {761     "ref": "Sources/QyvoraWallet/WalletService+Chains.swift:564",762     "contains": "A Solana address is the public key of the account itself: sharing it publishes the key."763    },764    {765     "ref": "Sources/QyvoraWallet/Chains.swift:359",766     "contains": "accountNote: \"One address (m/44'/501'/0'/0'). A Solana address is the Ed25519 public key itself.\","767    }768   ]769  }770 ]771}772
Files main
Menu

Theme