Native signature-possession workflow
The default native PoSC workflow proves knowledge of a signature for the verifier's exact request. It does not prove private-key knowledge or signing time. A private receipt can delegate that same request to another native prover. Use --proof-mode key-knowledge explicitly for legacy PoKC challenge/prove/verify. Request or proof versions never select a different mode on your behalf.
PoSC uses v4 only. Reissue old v3 requests and their signatures, receipts and proofs. Compressed P2PKH defaults to bitcoin-message-ecdsa-v1; P2WPKH defaults to bip322-ecdsa-v1. See measured stock Core and Sparrow instructions. Both procedures use one unchanged ECDSA/HASH160 circuit, 53 public inputs and one proof per request.
Build the standard capability
Use the pinned base SDK installed as described in the README. No optional SDK ECDSA package is required. In separate fresh build directories:
cmake -S . -B build-signature -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/path/to/longfellow-prefix \
-DQUIETPROOF_BUILD_RPC=ON
cmake --build build-signature --parallel 2
cmake -S . -B build-signature-offline -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/path/to/longfellow-prefix \
-DQUIETPROOF_BUILD_RPC=OFF
cmake --build build-signature-offline --parallel 2Signature support defaults ON. An intentional -DQUIETPROOF_BUILD_SIGNATURE_MODE=OFF build reports unsupported (exit66) for ordinary no-mode signature operations and still supports explicit PoKC. Installed CMake consumers request COMPONENTS signature and link LongfellowZKQuietProof::signature; requesting only the base component does not discover signing/oracle packages. The test-only libsecp256k1 oracle is not an installed production dependency.
Try stock Core32.1 on isolated regtest
Follow the existing disposable tutorial using the verified Core32.1 binaries in BITCOIN_BIN. Its old scalar create/inspect/prove/verify commands use explicit --proof-mode key-knowledge. Keep its owned node running after verification and retain core, DEMO, RPC_URL and MINER in the same Bash session. Never use a production wallet/datadir for this example. Core32 mining needs sufficiently responsive local storage; it has no permission to raise application RPC bounds.
Create a separate disposable signing address in the tutorial's funding wallet:
QP_SIGNATURE="$(pwd)/build-signature/quietproof"
QP_OFFLINE="$(pwd)/build-signature-offline/quietproof"
SIGN_ADDRESS=$(core -rpcwallet=funding getnewaddress '' bech32)
core -rpcwallet=funding sendtoaddress "$SIGN_ADDRESS" 1 >/dev/null
core generatetoaddress 2 "$MINER" >/dev/null
"$QP_SIGNATURE" challenge create \
--signing-kind p2wpkh --network regtest --address "$SIGN_ADDRESS" \
--verifier example.org --purpose proof-of-funds --message 'Signature demo' \
--expires-in 3600 --output "$DEMO/expected.qpr" --rpc-wallet funding \
--rpc-url "$RPC_URL" --rpc-datadir "$DEMO"The verifier retains expected.qpr independently before sending the prover a copy. The selected kind must occur in the claims and be available in the selected wallet. Homogeneous claims infer that kind when --signing-kind is omitted; mixed claims require an explicit signing kind and profile. For P2PKH, create a legacy address and select p2pkh; a wpkh descriptor does not imply a pkh alias. Review network, audience, purpose, nonce/expiry, amounts and exact claims through trusted request creation records. Native CLI inspect currently does not support PoSC requests/proofs; browser metadata inspection is a separate public capability, not authorisation.
Local wallet proving or private receipt delegation
For external signing, use a request for an address already controlled by that signer. Export the exact 88-byte application message:
"$QP_SIGNATURE" signing-material --request "$DEMO/expected.qpr" \
--output "$DEMO/message.txt"Sign quietproof:signature:v4: plus all 64 lowercase digest hex digits, without a newline. The human request label is not the signing message. Keep its signature in a current-owner owner-only file, then import it:
"$QP_SIGNATURE" import-signature --request "$DEMO/expected.qpr" \
--signature-input "$DEMO/private-signature.txt" --signature-format bip322-simple \
--receipt-output "$DEMO/private.qpa"For a default P2PKH request use --signature-format bitcoin-message instead. The importer accepts Bitcoin Signed Message, BIP322 Simple/Full or sparrow-json wrappers; metadata cannot override request/address/network checks. Sparrow2.5.6 produces compatible P2WPKH Simple and compressed-P2PKH Standard/Electrum signatures for their respective profiles. P2PKH BIP322 Full is an explicit request alternative qualified with Core; Sparrow cannot produce Full. Taproot/Schnorr has no Quietproof proof relation. Follow Sparrow on signet for the tested disposable-wallet walkthrough; the detailed compatibility matrix is recorded in repository scripts/sparrow_signer.md. Use the imported receipt in the offline proving command below. No wallet or RPC credentials are needed for message export, signature import or receipt-only proving.
Local signing and proving:
"$QP_SIGNATURE" prove \
--request "$DEMO/expected.qpr" --output "$DEMO/online.qpf" \
--rpc-wallet funding --rpc-url "$RPC_URL" --rpc-datadir "$DEMO"Alternatively, export an owner-only private capability and prove natively on a machine with no RPC support. These commands deliberately use different output names because existing destinations are never overwritten:
"$QP_SIGNATURE" authorize \
--request "$DEMO/expected.qpr" --receipt-output "$DEMO/private.qpa" \
--rpc-wallet funding --rpc-url "$RPC_URL" --rpc-datadir "$DEMO"
"$QP_OFFLINE" prove \
--request "$DEMO/expected.qpr" --receipt-input "$DEMO/private.qpa" \
--output "$DEMO/delegated.qpf"Only the selected stock wallet signs. Unlock it separately if necessary; this path never unlocks, exports keys, funds or broadcasts. BIP322 uses a fixed synthetic zero-value transaction; the P2PKH default uses signmessage. Neither spends the real claims. A signing failure cannot switch modes, script kinds or export the key.
private.qpa is plaintext witness capability, bounded to4096 bytes and accepted only as a regular current-owner owner-only file. Its holder learns Q/signature and can re-prove the same request; copying it does not create freshness. Transfer only to the intended native prover and remove private copies under your own retention policy. Never upload it to the browser, publish it, put it in logs or embed it in a proof. Owned CLI buffers are cleared where implemented, but SDK, JSON/library/allocator copies and OS/swap can retain witness data; no complete RAM-erasure guarantee is offered.
Verify with retained authority and durable replay state
For the delegated result (use online.qpf instead for the local alternative):
"$QP_SIGNATURE" verify "$DEMO/delegated.qpf" \
--expected-request "$DEMO/expected.qpr" --network regtest \
--verifier example.org --purpose proof-of-funds --max-lifetime 3600 \
--nonce-store "$DEMO/signature-nonces" --rpc-url "$RPC_URL" --rpc-datadir "$DEMO"Expect valid_current only after proof, exact real-output checks and final expiry/replay acceptance. The durable nonce store is a file. Acceptance rechecks time under its lock and appends/fsyncs before success; preserve it across restarts. Verifying another proof for the same request with the same store is a replay rejection. Each later engagement needs a fresh independent request.
Native validated-current policy requires IBD false, a validated active Core32 chainstate and a common fresh tip around every output lookup. A validated background AssumeUTXO chainstate is insufficient. Pruning may retain adequate current UTXO evidence but does not provide historical evidence. Read exact chain, clock and provider policy. The reported unspent_quantity is not immediate spendability, reservation, solvency or an atomic mempool snapshot. Missing/stale/provider evidence stays inconclusive; synthetic zero values never enter the sum.
Only public .qpr and .qpf files belong in the browser handoff. Signature mode requires the exact expected request; browser provider qualification is trusted/non-atomic and always authorizes:false, without validated-node or global replay acceptance. Native proving, real receipts and wallet RPC stay native. The native GUI defaults to reviewing a v4 request and proving with its private receipt.
Stop only the tutorial's owned node and remove its disposable data with its existing cleanup block. Measured limits are host-specific observations. The original L5.3 integrated malicious fresh-proof/advice attacks remain user-waived, unexecuted/unqualified; local review is not an external audit or universal soundness theorem.
Local enable, disable and restart procedure
Prepare separate fresh scalar-only and dual-mode installations. Set RC_ROOT to a new owned local directory and SDK_PREFIX to the qualified base SDK prefix; these are review artifacts, not deployment destinations:
cmake -S . -B "$RC_ROOT/build-off" -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$SDK_PREFIX" -DBUILD_TESTING=OFF \
-DQUIETPROOF_BUILD_RPC=ON -DQUIETPROOF_BUILD_SIGNATURE_MODE=OFF \
-DCMAKE_INSTALL_PREFIX="$RC_ROOT/install-off"
cmake --build "$RC_ROOT/build-off" --parallel 2
cmake --install "$RC_ROOT/build-off"
cmake -S . -B "$RC_ROOT/build-on" -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$SDK_PREFIX" -DBUILD_TESTING=OFF \
-DQUIETPROOF_BUILD_RPC=ON -DQUIETPROOF_BUILD_SIGNATURE_MODE=ON \
-DCMAKE_INSTALL_PREFIX="$RC_ROOT/install-on"
cmake --build "$RC_ROOT/build-on" --parallel 2
cmake --install "$RC_ROOT/build-on"Omitting the option in a fresh build selects ON. Do not install OFF over an old ON prefix: CMake does not uninstall old ON headers. Keep installed base, RPC and signature consumer checks separate; an OFF package must reject a required signature component even if an ON prefix appears later in the search path. The scalar/multisignature formats and identities remain unchanged.
- Before enabling, retain the expected request and the external durable nonce file independently of either installation. Protect that file with current-owner owner-only permissions and keep the same bare lowercase nonce namespace.
- Select
install-on/bin/quietproofexplicitly for new native invocations and use the default signature operations. Legacy scalar commands require--proof-mode key-knowledge. No wallet key-export fallback is enabled. - To disable, stop only your owned callers/proving processes and select
install-off/bin/quietprooffor subsequent invocations. Recognised signature creation/proving/acceptance requests return unsupported before wallet/proof work. Explicit PoKC commands and proofs remain usable. QuietProof supplies a CLI/library, not a background configuration service or reload endpoint. - In an embedding application,
QuietProofSignatureVerifierConfig::modesis independently selected local verifier policy. Itsallow_signature_possessiondefaults false even in an enabled build; select false for newly constructed verifier calls when disabling acceptance. Untrusted request metadata cannot turn it on. Keep the same durable final acceptance store, clock and chain-policy checks when enabling it again. - Restart your owned caller with the selected OFF installation, then later ON if desired. Never clear or replace the nonce file as part of switching. A previously accepted signature request remains a replay after re-enabling; disabling does not revoke copies of private receipts or erase acceptance history. A fresh engagement needs a new independently issued request.
For the static browser, use a separate fresh cross-build directory, pass --no-signature-mode to both scripts/build_wasm.py and scripts/build_static.py, and load that matched OFF artifact in a fresh worker. Check that signature support is unavailable and PoSC creation/verification reports unsupported without selecting legacy PoKC. Bounded public metadata inspection may remain available; it is not cryptographic or funds acceptance. Ordinary builds default ON; an explicit --signature-mode is also accepted. Browser replay history is local convenience and is not the native durable nonce store.
There is no authoritative browser issuer or global acceptance backend. Cached old ON clients and offline receipt holders may still construct requests or proofs. Replacing an artifact or disabling local verifier policy is not global revocation; an independent service must enforce its own acceptance policy and replay store. Public artifacts must never include real receipts, keys, RPC credentials or private witness logs. Review current installed documentation, source archives, checksums and feature flags before any separately authorised publication; local qualification does not publish or deploy them.