BP BitPads Protocol

Open Protocol · v2.0 · Free to Implement

BitPads

The best wire for transmissions near and far.
A compact, self-describing binary protocol for any medium — from a sensor on a factory floor to an account ledger in orbit.

Max Frame
4 B
Wave Categories
16
Ledger bits
40
Layers
L1–L3
Scroll

01 — What It Is

Every transmission,
in its smallest honest form.

BitPads is a binary framing protocol. It takes any signal — a temperature reading, a financial transaction, a machine command, a time reference — and wraps it in one to four bytes of precise, self-contained metadata. No negotiation. No schema files. No preamble. The header tells every listener exactly what category of data is arriving, which protocol layer applies, and how to decode what follows.

WAVE MODE

Signal First

A single byte can carry a complete, routable signal. Wave mode transmits category, intent, and acknowledgement request in one byte — optimised for real-time telemetry, alerts, and status broadcasts where every microsecond and every bit counts.

RECORD MODE

Structure on Demand

When structure is needed, Record mode activates the full component system — identity blocks, time references, value encoding, signal slots, and extension bytes. Complexity attaches precisely where it is required. Absent modules cost zero bits.

LAYER 3 — BITLEDGER

Accounting in 5 Bytes

BitLedger encodes a complete double-entry financial transaction in 40 bits: a 25-bit value block, 7 integrity flags, and an 8-bit account pair. The formula N = A × 2S + r achieves sub-cent precision without floating point.

ENHANCEMENT GRAMMAR

Control, Extended

C0 control codes gain a 3-bit Presence/Addressing/Context flag layer. Twenty-nine unconditional controls become context-aware signals across 13 named signal slots — enabling rich, auditable command sequences without added framing overhead.

Visual 01 — Protocol Layer Stack

LAYER 1 — IDENTITY BLOCK · 64 bits · Session ID · CRC-15 25-BIT VALUE · N = A × 2^S + r 7 FLAGS 8-BIT ACCT PAIR LAYER 2/3 — BITLEDGER · 40 BITS TOTAL META BYTE 1 Mode · ACK · Fragment · Category META BYTE 2 Archetype · Time · Domain · Slots META LAYER — UP TO 2 BYTES · SELF-DESCRIBING FRAME HEADER WAVE MODE 1 byte complete signal RECORD MODE 1–44 bytes · full structure SIGNAL META L2/L3 L1 → 5 bytes → 2 bytes → 8 bytes

02 — Why It Matters

For every domain
where precision is non-negotiable.

Protocol overhead is never free. In low-bandwidth radio links, embedded microcontrollers, satellite uplinks, and high-frequency industrial buses, every extraneous byte has a cost. BitPads eliminates that cost without eliminating structure — delivering a protocol that fits the economics of both a warehouse scanner and a deep-space transponder.

Industrial & IoT

Machine telemetry, sensor arrays, PLC command buses. Wave mode delivers status, alert, and command signals in a single byte — no TCP handshake, no JSON parsing, no schema file on device.

Key: 1-byte status broadcast
Key: Priority alert in real time
Key: Zero-config self-describing frame
Financial Systems

BitLedger's 40-bit transaction carries a complete double-entry record — value, rounding flag, account pair, and integrity check — across any transport without floating-point ambiguity or schema drift.

Key: Sub-cent precision, no float
Key: 16 account pair archetypes
Key: CRC-15 integrity on every record
Space & Deep-Link

Bandwidth across orbital or deep-space links is finite and expensive. BitPads compresses an identity-verified, time-referenced transaction to under 20 bytes — a complete record that survives any delay-tolerant network.

Key: Full record in ≤44 bytes
Key: Tier 1/2 time references
Key: Fragment-aware framing
Healthcare & Monitoring

Structured observation data — vital signs, dosage events, device state — with built-in identity attribution, time reference, and integrity checks. HIPAA-aware by design: sender ID is always verifiable.

Key: Identity-verified records
Key: Temporal precision to milliseconds
Key: Absent modules cost zero bits
Logistics & Retail

From warehouse scan-gun to point-of-sale, BitLedger encodes every debit, credit, and transfer in a single transmissible record — auditable, reproducible, and compact enough for RFID and BLE.

Key: Double-entry conservation enforced
Key: 16 scaling factor presets
Key: Session-chained records
Edge & Embedded

No runtime negotiation. No schema server. A BitPads decoder is a deterministic state machine — implementable on bare metal, in WASM, in a browser, or on a microcontroller with kilobytes of RAM.

Key: Deterministic state machine
Key: No external dependencies
Key: 1-byte SOH trigger, zero preamble

BitLedger Layer 3 — 40-Bit Transaction

Click any bit segment to inspect its field definition

N = A × 2S + r
25-Bit Value Block — N (bits 1–25)
7 Flag Bits (bits 26–32)
4-bit Acct Pair (33–36)
Cross-Val (37–38)
Ctrl (39–40)
Value Block (1–25)
Flag Bits (26–32)
Account Pair (33–36)
Cross-Val Echo (37–38)
Control Flags (39–40)
BitLedger — 40-Bit Layer 3
A complete double-entry transaction in five bytes. Click any bit to inspect its role.
25-bit value N = A × 2S + r  ·  7 flag bits  ·  4-bit account pair (14 archetypes)  ·  2 cross-validation echo bits  ·  Completeness + Extension flag

03 — Precision by Design

A protocol you can
hold in your head and implement today.

BitPads is not a platform. It is a specification — formally defined, openly published, and designed so that a competent engineer can write a conformant decoder in an afternoon. The CLI reference implementation ships with every primitive. The standard is the source of truth.

BitPads v2.0 — Wire Format
Frame size 1–4 bytes header · unlimited payload
Modes Wave (real-time) · Record (structured)
Wave categories 16 (0x0–0xF) + 256 extended
Trigger SOH 0x01 · bit 1 of Meta Byte 1
Fragmentation Bit 3 flag · session-reassembled
Identity 64-bit Layer 1 · CRC-15 integrity
Enhancement C0 + P/A/C flags · 13 signal slots
Cipher Session-negotiated · bit 6 flag
BitLedger v3.0 — Transaction Layer
Transaction width40 bits · 5 bytes on wire
Value encoding N = A × 2S + r · 25-bit N
Precision Sub-cent · no floating point
Account pairs 16 archetypes · double-entry
Flag block Rounding · sign · SF · direction
Integrity CRC-15 in Layer 1 identity block
Cross-layer checkbit29=bit37 · bit30=bit38
Conservation Debit + Credit = 0 invariant
// BitLedger encode — 5 bytes out, no external deps function encode(value, sf, S, debitAcct, creditAcct) { const N = Math.round(value * 1e4 / sf); // 25-bit value const A = N >> S; // mantissa const r = N & ((1 << S) - 1); // remainder const isExact = Math.abs(N - value * 1e4 / sf) < 1e-9; const flags = (isExact ? 0 : 0x40); // bit26 = rounding const acct = ((debitAcct & 0xF) << 4) | (creditAcct & 0xF); return pack40(N, flags, acct); // → Uint8Array(5) }
Visual 03 — 16 Wave Categories · The Transmission Spectrum

Every BitPads frame declares one of sixteen wave categories in Meta Byte 1 bits 5–8. The category tells the receiver — before any payload arrives — what domain of information is in transit. Hover to inspect.

Hover a category to see its role

04 — Implement & Experiment

The wire is
open.

Three repositories. One specification. Zero barriers to a working implementation.

A transmitter should never have to explain itself twice. A ledger record should be verifiable without a server. A protocol designed for Earth should work just as well beyond it. BitPads is the wire that makes that possible — compact enough for a beacon, precise enough for a bank, and open enough for whatever comes next.