- Do not push commits, branches, or tags to any remote without the user's explicit permission for that push.
- Preserve existing user changes and follow applicable nested instructions. Stay within the requested scope; commits, remote settings, publication and deployments require explicit authorization when requested by the user.
FACTOR (formerly FACT0RN/FACTØRN) is an independent UTXO Layer-1 with factoring PoW and Deadpool/IFaaS. FACT is the native coin. It descends from Bitcoin Core v22.0, but its header, chainwork, monetary and deployment rules differ. Hashing remains in use. Mining block-bound integers and solving requester-chosen bounties are separate workflows. KeyBoard is an interface, Deadpool is the protocol; Factory is not the entire network.
Use the checked-out source and applicable chain state as technical authority. The official website is the public knowledge resource. Papers, release announcements, deployed chain observations and research proposals have different status. Never infer activation from a tag or invent metrics/support claims. Start with doc/README.md, llms.txt and the versioned references in doc/factor-*.md.
For hosted Gateway integration questions, use the published agent skill and OpenAPI document. For consensus, native RPC, and Deadpool validation, use this repository’s implementation and release-specific documentation.
| Area | Sources and existing tests |
|---|---|
| Header/challenge/PoW | src/primitives/block.{h,cpp}, src/pow.cpp; src/test/pow_tests.cpp |
| Difficulty/deployment | src/asert_table.h, src/chainparams.cpp, src/consensus/params.h, src/versionbits.cpp, src/deploymentstatus.h; src/test/asert_tests.cpp, test/functional/feature_interim_daa.py |
| Chainwork/validation/subsidy | src/chain.cpp, src/validation.cpp, src/amount.h |
| Deadpool | src/deadpool/, src/script/{bignum.h,standard.cpp,interpreter.cpp}, src/index/deadpoolindex.cpp; src/test/deadpool_tests.cpp, test/functional/{feature_deadpool,rpc_deadpool}.py |
| Mining/RPC/wallet | src/miner.cpp, src/rpc/, src/wallet/; test/functional/mining_future_tip.py |
nBits is integer target bit length, not compact hash target. N=gHash(header)+wOffset; submitted p has ceil(nBits/2) bits, exact divisibility, ordering and probable-primality checks. Do not assume the cofactor always has the same bit length. Deadpool checks proper divisibility, not prime/equal-sized factors. One FACT is 100,000,000 base units. Integer widths, sign/byte encoding, floating-point evaluation, casts, shifts, rounding and table values are consensus-sensitive; never replace them with an approximately equivalent formula.
See INSTALL.md for prerequisites. Source-verified native headless build commands (not executed in the documentation review):
make -C depends NO_QT=1
./autogen.sh
./configure --prefix="$PWD/depends/$(./depends/config.guess)" --without-gui
makeUse the actual produced host prefix. GMP and Crypto++ are required, even without a wallet. Existing checks after a working build:
make check
src/test/test_factorn --run_test=asert_tests,pow_tests,deadpool_tests
python3 test/functional/test_runner.py feature_deadpool.py rpc_deadpool.py feature_interim_daa.py mining_future_tip.pyCheck dependencies and test-runner help; some functional tests need sympy. Do not claim builds/tests passed without executing them. Pre-existing binaries failed to load libboost_system.so.1.83.0 in the December 2, 2026 documentation review; this is environment evidence, not a source defect.
Consensus changes need explicit old/new rule analysis, network and deployment boundaries, arithmetic/serialization review and meaningful regression coverage. Preserve copyright notices, MIT licensing and upstream provenance. Follow CONTRIBUTING.md; inherited upstream manuals are not automatic FACTOR policy.
Update relevant technical docs when behavior changes; link implementation/tests and prepare reciprocal website knowledge links without editing external repositories by default. Use SECURITY.md for disclosure; never post exploitable details, credentials or wallet material in public issues. Documentation-only work needs lightweight source/link review and git diff --check, not new frameworks or content pipelines.