Skip to main content

BitFS SDK API framework

This page is the public API blueprint, not a wire specification or directly compilable Go source. Implementations MUST follow protocol specifications 001–007; numbered specifications take precedence if this guide conflicts with them.

The framework is split by responsibility:

DocumentPurpose
01 · Protocol foundations and CBORPackage boundaries, conventions, errors, unified wire encoding, and pure protocol functions.
02 · External hooks and data typesSigning, persistence, content, transaction engine, BSV node hooks, and key inputs.
03 · Role workflow APIBuyer, seller, and arbiter APIs and the shortest end-to-end call path.
04 · Implementation roadmapImplemented layers and required verification coverage.

The SDK constructs, validates, and retains self-proving credentials. Applications provide transport, private-key custody, content storage, databases, and BSV nodes through interfaces. Database records support lookup, idempotency, and seller delivery protection; they never replace raw CBOR, raw transactions, or signatures.