SPB Git

Repository Public

AboutView.swift 6.2 KB 126 lines swift

1// =============================================================================2//                  SP BOUCHER | SOFTWARE & RESEARCH3//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project          : QYVORA7// File             : App/Sources/AboutView.swift8// Module           : Sources9// Repository       : https://git.spboucher.ai/qyvora10// Project Website  : Not specified11// Created          : 2026-12-0412// Last Modified    : 2026-12-0513//14// Author           : Simon-Pierre Boucher15// Position         : Professor of Finance16// Institution      : Université du Québec en Outaouais (UQO)17// Organization     : SP Boucher18// Website          : https://spboucher.ai19// Git              : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development      : dev@spboucher.ai23// Support          : support@spboucher.ai24// Security/Admin   : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License          : None specified (no license file in this repository)33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================40import SwiftUI41import QyvoraCore42import QyvoraCrypto43import QyvoraWallet44import QyvoraUI4546/// Version, supported chains, the audit statement and links.47struct AboutView: View {48    /// Where the internal audit reports live in the source repository.49    static let auditReportPath = "security/reports/SECURITY_AUDIT_REPORT.md"5051    var body: some View {52        SecurityScroll {53            VStack(spacing: QSpace.m) {54                QMark().frame(width: 84, height: 84)55                Text("QYVORA")56                    .font(.system(.title3, design: .default, weight: .semibold))57                    .kerning(6)58                    .foregroundStyle(QColor.textPrimary)59                Text("Self-custody wallet for \(ChainRegistry.mainChains.count) blockchains, kept in a local vault protected with post-quantum cryptography.")60                    .font(QFont.callout)61                    .foregroundStyle(QColor.textSecondary)62                    .multilineTextAlignment(.center)63                    .fixedSize(horizontal: false, vertical: true)64            }65            .frame(maxWidth: .infinity)66            .padding(.vertical, QSpace.m)67            .accessibilityElement(children: .combine)6869            QListSection("Version", separatorInset: QMetric.padding) {70                SecFactRow(label: "Application", value: AppInfo.version)71                SecFactRow(label: "Build", value: "\(AppInfo.build) · \(AppInfo.buildConfiguration)")72                SecFactRow(label: "Cryptographic engine", value: QyvoraEngine.version)73                SecFactRow(label: "System", value: AppInfo.system)74            }75            .id("version")7677            ForEach(ChainRegistry.groups) { group in78                QListSection(group.id == ChainRegistry.groups.first?.id ? "Supported chains" : nil, footnote: group.accountNote, separatorInset: QMetric.padding) {79                    SecFactRow(label: group.title, value: group.chains.map(\.displayName).joined(separator: ", "))80                    SecFactRow(label: "Test networks", value: Self.testNetworks(group))81                }82            }83            .id("chains")8485            QListSection("Networks and audit", footnote: "The post-quantum algorithms protect the local vault, backups, device-to-device transfers and the wallet identity. They do not make any blockchain quantum-resistant: transactions are signed with the schemes the networks validate (secp256k1 ECDSA, Ed25519 on Solana).",86                         separatorInset: QMetric.padding) {87                SecTextRow(text: MainnetWording.statement,88                           systemImage: MainnetPolicy.auditCompleted ? "checkmark.circle" : (MainnetPolicy.mainnetEnabled ? "exclamationmark.triangle" : "lock"),89                           tone: MainnetPolicy.auditCompleted ? .positive : .warning)90                SecTextRow(text: QyvoraEngine.auditStatus)91                SecTextRow(text: "No third party has audited QYVORA. An internal, automated audit exists; it is not an independent certification. Its reports are in the source repository.")92                SecFactRow(label: "Internal audit report", value: Self.auditReportPath, mono: true)93            }94            .id("audit")9596            QListSection("Links") {97                link("Source repository", "git.spboucher.ai/qyvora", "chevron.left.forwardslash.chevron.right", AppInfo.repositoryURL)98                link("Privacy policy", "qyvora.spboucher.ai/privacy.html", "hand.raised", AppInfo.privacyURL)99                link("Support", AppInfo.supportAddress, "envelope", AppInfo.supportURL)100            }101            .id("links")102        }103        .navigationTitle("About")104        .navigationBarTitleDisplayMode(.inline)105    }106107    /// "Signet, Testnet, Litecoin Testnet…": the test networks of a family, from the registry.108    static func testNetworks(_ group: ChainGroup) -> String {109        var seen = [ChainID]()110        for chain in group.chains { for test in chain.testCounterparts where !seen.contains(test) { seen.append(test) } }111        return seen.compactMap { ChainRegistry.descriptor($0)?.displayName }.joined(separator: ", ")112    }113114    private func link(_ title: String, _ detail: String, _ systemImage: String, _ url: URL) -> some View {115        Link(destination: url) {116            HStack(spacing: QSpace.s) {117                SecRowLabel(title: title, subtitle: detail, systemImage: systemImage)118                Image(systemName: "arrow.up.right").font(.footnote.weight(.semibold)).foregroundStyle(QColor.textTertiary)119                    .accessibilityHidden(true)120            }121        }122        .buttonStyle(.qRow)123        .accessibilityHint("Opens outside the app")124    }125}126
Files main
Menu

Theme