Skip to content

About

Shout your transactions from the mountaintops with absolutely no privacy!

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Mountaintops

A client-only BRC-100 wallet application at mountaintops.net. Static files are served through the existing CARS frontend project. Mountaintops has no application API, registry server, database, or deposit-watching service.

Receiving, expiration and recovery

The main Receive view shows one selected address, its expiration status and payment controls. Payments to all addresses are checked explicitly and shown together, so switching receiving addresses does not hide earlier funds. Each import still uses its own address/key and the existing verified-input flow. Other addresses, advanced search targets, transaction eligibility and recovery explanations are collapsed until needed; Send has its own view. A fresh connection opens the longest-lasting eligible saved address, with a stable lowest-key-ID tie break. Switching to any other saved eligible address is free in-memory session state and survives background refreshes. It creates no preference transaction and uses no browser storage. Reconnecting or opening another device uses the deterministic default again; all addresses and retained funds recover from the wallet regardless of this display choice. Legacy selection records remain readable for compatible clients but no longer control the new default. Expiration warnings and fees remain beside the affected action.

The original address keeps the exact [1, 'mountaintops'], decimal key ID 1, counterparty anyone, forSelf: true derivation. Browser workers search canonical decimal key IDs from 1 upward, returning the first match for a fixed BRC-234 target. The suggested target uses a measured 30-second, 95th-percentile work estimate; each work slice is bounded to 30 seconds. Search is free. A match requires explicit Save & use address (wallet fees apply) before the address can be shared for receiving. One encrypted address-publication record makes it recoverable; the current session selects it without another wallet action. Switching an already saved address is free; only publishing a newly found address or explicitly saving search progress requires a record fee. Pausing is free; saving resumable progress to the wallet is an explicit fee-bearing step. Unsaved work can always be repeated deterministically from ID 1; no published address depends on that session's memory.

Address publications, primary selections, search progress, permanent receiving retirements, chain checkpoints, bounded-history completion are immutable encrypted on-chain PushDrop records using SDK LocalKVStore in wallet basket mntops v1. Each metadata record uses a 1-satoshi output plus applicable network and wallet service fees and the wallet's permission flow. There are no certificate APIs or certificate storage. Independent random record keys allow concurrent-device records to merge without overwriting another device's address history. A published address is never acknowledged until the wallet can read its record back. Optional legacy useForReceiving: true and primary records are preserved for older compatible clients; new clients need no durable display-preference stream. Older clients can still recover the address; they must reload an updated build to interpret the combined selection.

Restore the same BRC-100 wallet account and its supported storage/recovery service on any device. Browser storage, the old device, an open tab, manually saved key IDs and exports are not recovery dependencies. The original address can be reconstructed without a storage transaction. As with other BRC-100 applications, the wallet account and its storage service must remain available.

At its first recorded exclusion, an address is permanently Expired — do not send coins to this address. Copy, receiving selection and payments to retired/expired destinations are blocked. Retirement does not remove ownership or disable imports of existing funds. There is no override. Pending contractions are checked before payment submission. External applications can still send on chain; Mountaintops cannot prevent that or promise discovery of new post-expiration deposits.

Explicit balance checks of eligible addresses use existing WhatsOnChain discovery. After expiration there are no live unspent-address queries or background address polls. A first-returning user can perform one bounded, ascending confirmed-history bootstrap, stopping at the last pre-expiration height. Its completion is saved only after coin evidence is acknowledged by the wallet. Subsequent checks use wallet-retained BEEF and exact known-outpoint status. Known pending TXIDs and orphaned proofs can be resolved without reopening address discovery. Errors and incomplete provider responses never become a zero balance.

Coin evidence and per-input derivation metadata are retained in the mountaintops receipts v1 wallet basket. Imports validate scripts, satoshis, canonical proofs and actual unspentness; each custom input is signed with its own key ID. Wallet-added inputs stay under the wallet's signer. A filtered BRC-234 ledger total is never used as a spendable balance.

BRC-234 rules and payment construction

shared/schedule.json pins the normative schedule at BRC document blob 85eaa6219cec77350170d52d243e65122e453d39 (merged proposal). Mainnet block 1,000,000 establishes the MTP anchor. Receive cards show Not earlier than [month year], an estimated earliest expiration at the first stage the address fails, including the 14-chain-day waiting round. Before the anchor exists, its median time is projected from a validated WoC tip height/hash/MTP at 600 seconds per block; these projections can move earlier or later and are explicitly estimates, not guaranteed minimum dates. Once available, the actual anchor replaces the projection. A More info modal explains the stage number, ownership, transaction eligibility, approximate stage blocks/dates and links to BRC-234. Missing optional tip evidence shows an unavailable estimate without changing stage-0 coverage. Testnet and final-stage addresses have no invented cutoff. Estimated dates/heights never drive expiration, receiving eligibility or mining. Calendar gates alone are not expiration dates: all-version non-coinbase volume, frozen pending rounds, the 14-MTP-day notice and following-block activation also apply. Coverage is replayed from parent-linked WoC block evidence and wallet checkpoints; reorged checkpoints are discarded. Initial catch-up after the anchor can be lengthy. Testnet has no fabricated mainnet sunset.

Address, TXID and script-hash predicates are independent. The app displays funding coverage at confirmation without discarding coins outside those rules. Payments/imports prepare version-1 transactions with supported wallet APIs, bounded nonce variation, noSend signing, final-template and final-TXID inspection, fresh coverage checks, and one explicit sendWith submission. Every input, including wallet-added fee/change inputs, is checked against known-outpoint spend evidence before signing and again immediately before submission. A spent or unknown input stops the payment and aborts its unsubmitted preparation. A signature or wallet balance alone does not prove spendability. The same checks protect encrypted record saves: LocalKVStore prepares and signs without broadcasting, its SDK validates the token/template, then the app checks all inputs again before one explicit release. Unsubmitted record actions recover through native wallet labels; ordinary acknowledged unproven records do not block payments, while unresolved preparations do. Candidate payment outputs are never changed to grind. Abandoned candidates are aborted. The wallet may ask for permissions; metadata records have their own fees. The payment work budget is 30 seconds. Coverage at inclusion remains a chain-derived fact, independent of application completion on wallet acceptance.

Native durable wallet action history and unique labels support recovery after an interrupted submission, without requiring an extra fee-paying record before the first import. An empty wallet can import its first coins. Signed noSend preparations can be canceled by TXID from a fresh device; unsigned or uncertain actions require wallet review. An uncertain outcome blocks automatic retries and requires checking wallet history. Out-of-session signable-reference recovery is not assumed. Mountaintops does not promise that a BRC-234 merge proves provider adoption, indefinite WoC availability, complete retrieval of data a provider no longer serves, or external wallet transaction-grinding support. Such failures remain explicit, with retained funds and keys intact.

The Activity this session list is ephemeral React state and clears on reload. Mountaintops does not create extra history tokens or load past completed payments into that list. The wallet retains its own mandatory transaction records and coin proofs; native unfinished-action checks remain for duplicate-payment protection. For existing desktop wallets, the client prefers their standard JSON bridge over SDK 4's changed binary output format, only after verifying the same identity and network. CWI/mobile transports are unchanged.

Development and validation

Use Node 24:

cd frontend
npm ci
npm test
npm run lint
npm run build
npm audit --omit=dev --audit-level=moderate

CI runs these checks. Tests use real SDK derivation, signing, encryption, PushDrop and BEEF with disposable synthetic funding. frontend/test/ui.html is a development-only isolated wallet/network fixture; ?expired exercises retirement without using real funds. Vite production builds include only index.html and its assets, excluding fixtures.

All anonymous WoC reads share a three-requests-per-second scheduler with bounded safe-read retries and Retry-After handling. No API key is bundled. Wallet retained evidence does not remove the current canonical-root and actual spend-status dependency on WoC. If WoC is unavailable, the app reports an incomplete check instead of treating coins as lost or spendable.

Release and recovery

Production is frontend-only CARS project 1133dd7636b44d50134df01fd7fe5ec1, configuration 1 in deployment-info.json:

npm ci
npx cars doctor 1
npm run build
npm run deploy

The root uses current CARS CLI. Releases require operator-owned Evans safety gates, isolated canary rendering/drain qualification, continuous probes of custom and generated domains, exact deployed-asset verification, and two Ready serving endpoints on distinct nodes. ops/canary.Dockerfile supports a Linux/amd64 remote qualification image of the same frontend source; it adds no application backend. Deployment records, images, routing, release credentials and rollback evidence belong in network-ops.

After publishing addresses, rollback must preserve this wallet record format, expiration blocks and access to all saved key IDs. Do not roll back to the old single-address frontend. Retain the accepted compatible frontend image and use forward repair or a compatible image rollback; never delete wallet recovery outputs or resume expired-address discovery.

Wallet permission group and branding

/manifest.json declares the complete BRC-116 group under metanet: identity retrieval, the unchanged Mountaintops derivation/signing protocol, self-only [2, "mntops v1"] SDK LocalKVStore encryption/signature checks, both app baskets, all three fixed action-label protocols, and a 100,000-satoshi monthly spending allowance for payments and wallet/network fees. The wallet presents this declaration for user consent; it is not a grant or a hard transfer limit. Above-allowance payments require further wallet approval. No certificate or peer-trust scope is requested. See the BRC-116 specification.

New actions use fixed labels and native TXIDs, avoiding a new label permission for every request. Older UUID-labelled actions remain recoverable by reading the common app label and matching their TXID or legacy label in returned metadata. No transaction UI history is persisted.

The header and favicon use the same authored /mountaintops.svg. Wallet/PWA icons and the touch icon are PNG renders of that source at 192 and 512 pixels. Keep all variants in sync when changing the logo. The unused legacy Vite file remains only for cached old HTML during compatible releases; the current app and manifest never reference it.

Action feedback and payment outcomes

Every asynchronous action shows an active button and a clear status: connection, copy, send/move, payment/address refresh, search preparation and mining, saving an address or search progress, unfinished-payment review/cancellation, and background address checks. Progress ends on success or error; existing balances stay visible through a refresh. Reduced-motion preferences stop decorative animation, and a live announcement outside the busy region keeps status available to screen readers. Switching a saved address, reviewing a draft, opening details and other instant actions do not add artificial loading delays.

Copy starts directly in the focused click using the currently validated address, without waiting for wallet or chain calls. Receiving, network, retirement and pending-expiration guards still apply. Coverage older than 90 seconds requires a separate address check and a new explicit Copy click; the app never writes the clipboard later in the background. Browser denial selects the address for manual copying instead of displaying a raw clipboard error.

Sending reviews an exact recipient/amount snapshot before wallet preparation. Sats and BSV conversion preserves the recipient amount. Exactly one positive submission acknowledgment must match the signed TXID. Wallet sending, unproven and completed states acknowledge wallet ownership of the transaction lifecycle and release the app payment hold. Mining, proof collection and broadcast retries belong to the wallet. No post-acceptance metadata or chain read can turn a successful acknowledgment into a failed payment or delay its receipt.

Genuine unknown, incomplete or contradictory outcomes retain the exact-attempt guard. Checking status reads only identity, network and native action history; it never signs, resubmits, refreshes recovery records or writes a status token. A previously observed unresolved action missing from later history remains guarded in that session. Legacy action records resolve in memory. Unsent preparations keep their separate cancellation action, checked against fresh history before aborting. Known failure is never success or an automatic retry. Input, template, coverage, expiry, ownership and recovery checks remain unchanged.

Validation from frontend/: npm test, npm run lint, npm run build, and npm run test:browser. Disposable SDK/browser checks at 1440, 390 and 320 pixels cover all action states, delayed/declined/lost wallet results, single submission, subsequent unmined-change payments, account boundaries, preserved balances, clipboard focus/denial, and reduced motion. They block external requests and do not use a real wallet. ACTIONS_EVIDENCE, COPY_ADDRESS_EVIDENCE, REFRESH_EVIDENCE and PAYMENT_STATUS_EVIDENCE optionally save demo screenshots. The status API supplies no submission timestamp; the UI reports the observed check time instead of inventing elapsed submission time or a mining countdown.

CI exports a committed Linux/amd64 qualification image for isolated startup and endpoint-withdrawal testing. Its non-root runtime and port 8080 match production constraints. Production releases retain the immutable old-HTML asset bridge, existing CARS security/availability fields and wallet record compatibility. Rollback must preserve wallet data and earlier assets.

About

Shout your transactions from the mountaintops with absolutely no privacy!

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages