Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Secure Scuttlebutt (SSB)

Secure Scuttlebutt (SSB) is a peer-to-peer communication protocol and self-certifying social network where data is stored locally and replicated across a social graph via gossip.
Chainscore © 2026
definition
PROTOCOL

What is Secure Scuttlebutt (SSB)?

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications using an append-only log data structure.

Secure Scuttlebutt (SSB) is a decentralized protocol for building offline-first, peer-to-peer social applications. It operates without central servers by having each user maintain their own append-only log of cryptographically signed messages. These logs are then replicated across a user's network of trusted peers, creating a resilient, distributed social graph. Unlike blockchain-based systems, SSB does not rely on global consensus or mining; data integrity is ensured through digital signatures and the immutable structure of the logs themselves.

The core data structure is the signed log, where each new message contains a cryptographic hash of the previous one, forming an unforgeable chain. Messages can be of various types—such as posts, follows, or private communications—and are disseminated via a gossip protocol where peers sync their logs. This design enables features like asynchronous communication, resistance to censorship, and operation in partially connected or offline environments, as data syncs whenever a connection is available.

A key innovation of SSB is its social graph-based replication. Instead of broadcasting all data to everyone, a node primarily replicates logs from users it follows and from users those users follow, a concept known as friend-of-a-friend (FOAF) replication. This creates efficient, interest-based data distribution. Applications like Patchwork and Manyverse are built atop SSB, providing user interfaces for social networking, blogging, and community forums entirely within this decentralized ecosystem.

The protocol's security model is based on public-key cryptography. Each user is identified by a public key, which also serves as their feed ID. Every message they publish is signed with their corresponding private key, allowing any peer to verify its authenticity and origin. This eliminates the need for a central authority to vouch for identity, making Sybil attacks more difficult and placing control of data and identity squarely with the user.

SSB represents a distinct approach to decentralization, prioritizing social connectivity and user sovereignty over global state consensus. Its architecture offers a compelling alternative for applications where resilience, privacy, and user-controlled data are paramount, demonstrating the viability of offline-first networking in an increasingly connected yet centralized digital world.

etymology
TERM BACKGROUND

Etymology and Origin

The name 'Secure Scuttlebutt' is a compound term that precisely describes the protocol's technical and social architecture.

The term Secure Scuttlebutt (SSB) originates from two distinct concepts: cryptographic security and nautical communication. Scuttlebutt is a naval term for a water cask or drinking fountain, which historically served as a social hub where sailors would gather to exchange gossip and news. In this context, it metaphorically represents the protocol's core function as a decentralized, peer-to-peer social network for sharing updates and messages.

The Secure prefix denotes the protocol's foundational use of cryptographic primitives to ensure data integrity and identity. Every user in the SSB network is identified by a public key, and all messages are cryptographically signed, forming an immutable, append-only log known as a Secure Scuttlebutt feed. This design ensures that data is verifiable and tamper-proof, creating a trusted social graph without central servers.

The protocol was created by Dominic Tarr around 2014 as an experiment in building a fully decentralized social platform resilient to censorship and network outages. Its design philosophy emphasizes offline-first operation and eventual consistency, allowing networks to form locally (e.g., via Wi-Fi or USB drives) and sync gossip later, much like sailors sharing news when their ships meet at sea.

The name's nautical metaphor extends to core concepts within the protocol. The global distributed database is called the SSB Pub, short for public house, a terrestrial equivalent of the scuttlebutt. The process of replicating data between peers is called gossip, directly referencing the informal exchange of information. This consistent thematic naming helps conceptualize the system's peer-to-peer, rumor-style propagation of data.

Unlike blockchain-based systems, SSB's origin story is not rooted in financial transactions but in social connectivity and data sovereignty. It emerged from the peer-to-peer and dat protocol communities, sharing a vision of a user-owned web. Its etymology perfectly encapsulates its mission: to provide a secure, gossip-based infrastructure for human communication.

how-it-works
GOSSIP PROTOCOL

How Secure Scuttlebutt Works

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications, operating without central servers by replicating data through a cryptographically secure gossip mechanism.

At its core, Secure Scuttlebutt is a replicated append-only log protocol. Each user maintains their own personal feed, which is a cryptographically signed chain of messages. Every new message contains a signature and a hash linking it to the previous message, creating an immutable, tamper-evident history. This structure ensures data integrity and provides a verifiable origin for all content, forming the foundational data structure of the network.

Data dissemination occurs through a gossip protocol, where peers directly exchange and replicate each other's logs. When two SSB clients connect, they compare their known message hashes and sync any missing data. This creates a mesh network where information propagates organically. Crucially, replication is selective; you only store data from people you choose to follow or from peers within your local social graph, which controls storage requirements and shapes your view of the network.

The protocol employs strong public-key cryptography for identity and security. A user's identity is their public key, and their feed is signed with the corresponding private key. To establish connections, peers use a decentralized invite system or connect over local networks. Discovery often happens through pub servers, which are always-online peers that help relay messages and introduce users, bridging gaps in the peer-to-peer mesh without acting as central authorities.

Applications built on SSB, like Patchwork or Manyverse, interact with a local database containing the replicated logs. The SSB protocol defines a set of core message types (e.g., post, contact, vote) and a off-grid-first philosophy, prioritizing local operation and syncing when connectivity is available. This design makes it uniquely resilient for environments with intermittent internet access, enabling asynchronous social networking.

key-features
ARCHITECTURE

Key Features of SSB

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications, defined by its unique data structures and replication model.

01

Append-Only Log (Feed)

Each user's identity is a cryptographically signed, append-only log of messages. Every new post, like, or follow is a signed entry appended to the user's local log. This creates an immutable, verifiable history where:

  • Integrity is guaranteed by digital signatures.
  • Replication is simple: peers sync by requesting missing sequence numbers.
  • The log is the source of truth, enabling offline-first operation.
02

Peer-to-Peer Gossip Protocol

SSB nodes discover and connect directly using a gossip protocol. There is no central server; data propagates through a mesh network. Key mechanisms include:

  • Local Discovery: Finding peers on the same WiFi via UDP broadcasts.
  • Pub Servers: Optional relay servers (pubs) help bootstrap connections.
  • Epidemic Broadcast Trees: Efficiently gossiping new messages to minimize redundant traffic across the network.
03

Content-Addressable Storage

All messages are stored and referenced by their cryptographic hash (SHA256). This means:

  • Data is immutable: The hash uniquely identifies the content.
  • Deduplication is automatic: The same message hash is stored only once.
  • Integrity is verifiable: Any tampering changes the hash, breaking the reference. This forms a Merkle DAG structure, similar to Git, enabling efficient syncing of partial histories.
04

Social Graph Replication

Data replication is driven by the social graph. You primarily sync data from people you follow (1-hop) and from people they follow (2-hops). This creates a friend-of-friend replication model that:

  • Scales naturally with social interest.
  • Preserves privacy by limiting unnecessary data propagation.
  • Allows for partial replication, where nodes only store data relevant to their local community.
05

Offline-First & Local-First

SSB is designed for local-first software. All your data and social graph are stored on your device. This enables:

  • Full functionality offline: Read and compose posts without a network connection.
  • Asynchronous sync: Changes are replicated when peers connect later.
  • User sovereignty: You own your data and identity, independent of any service provider.
06

Protocol Extensibility

The core protocol defines the replication layer, while application logic is built via message schemas. Developers create new message types (e.g., post, vote, about) to build applications like:

  • Social feeds (Patchwork, Manyverse)
  • Blogging platforms (Oasis)
  • Collaborative tools (e.g., chess games, code repositories) This separation allows for innovation without forking the underlying network.
core-concepts
SECURE SCUTTLEBUTT (SSB)

Core Technical Concepts

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications using an append-only log data structure.

01

Append-Only Log (Feed)

The core data structure in SSB is a cryptographically signed, append-only log (or feed). Each user controls their own feed, where every new message is:

  • Signed with the user's private key.
  • Linked to the previous message via a hash.
  • Immutable once published. This creates a verifiable, tamper-proof history of a user's activity, forming the basis for decentralized social graphs and data replication.
02

Peer-to-Peer Gossip Protocol

SSB nodes discover and connect directly using a gossip protocol. Instead of centralized servers, peers:

  • Share their contact lists (who they follow).
  • Replicate the logs of users they follow, and the logs of those users' followers.
  • Propagate updates across the network organically. This creates a resilient, serverless mesh network where data flows based on social connections, not infrastructure.
03

Offline-First & Local-First Design

SSB is designed for environments with poor or intermittent connectivity. Key principles include:

  • Local database: All replicated data is stored permanently on the user's device.
  • Eventual consistency: The network syncs and reconciles logs when peers connect.
  • No global consensus: There is no requirement for all nodes to agree on a single state. This enables applications that work seamlessly offline and prioritize user data sovereignty.
04

Content-Addressable Storage

All data in SSB is referenced by its cryptographic hash, using a scheme called SSB URIs (e.g., %hash123...=.sha256). This means:

  • Content is immutable; changing the data changes its address.
  • Data integrity is automatically verified upon retrieval.
  • It enables efficient deduplication across the network. This system ensures that shared content, like images or posts, is uniquely identified and cannot be corrupted.
05

Decentralized Identity (Ed25519)

Identity in SSB is derived from a user's long-term Ed25519 signing key pair. A user's public key is their permanent identifier (e.g., @key123...=.ed25519). This provides:

  • Self-sovereignty: No central authority issues or controls identities.
  • Verifiable authorship: Every message is signed, proving it came from that key.
  • Portability: Identity and social graph are not tied to any specific server or domain.
06

Scuttlebutt vs. Blockchain

While both are decentralized, SSB differs from traditional blockchains in key ways:

  • No global ledger: Each user maintains their own log; there is no single chain.
  • No native cryptocurrency or mining: The protocol is designed for social data, not value transfer.
  • No global consensus: Agreement is only needed between directly interacting peers.
  • Social replication: Data spread is based on social graphs, not proof-of-work or proof-of-stake.
ARCHITECTURAL COMPARISON

SSB vs. Traditional & Federated Models

A comparison of core architectural properties between Secure Scuttlebutt (SSB), traditional client-server models, and federated platforms.

Architectural FeatureSecure Scuttlebutt (SSB)Traditional Client-ServerFederated Model (e.g., Mastodon)

Data Ownership & Storage

User's local device

Central server

Instance server

Network Topology

Peer-to-peer gossip mesh

Hub-and-spoke

Hub-and-spoke of servers

Offline-First Operation

Identity & Authentication

Cryptographic keypair (self-sovereign)

Username/password (server-managed)

Username/password (instance-managed)

Data Replication & Sync

Append-only logs via gossip

Central database queries

Server-to-server protocols (e.g., ActivityPub)

Censorship Resistance

High (no central point of control)

Low (centralized control)

Medium (depends on instance policy)

Infrastructure Cost

Distributed among users

Central entity bears cost

Distributed among instance operators

Global Feed Consistency

Eventual consistency

Strong consistency

Eventual consistency across instances

examples
SECURE SCUTTLEBUTT ECOSYSTEM

SSB Applications and Clients

Secure Scuttlebutt (SSB) is a protocol for decentralized social networking and data synchronization. Its ecosystem consists of interoperable applications and clients that operate on the same underlying append-only log data structure and peer-to-peer gossip protocol.

06

Interoperability & Data Portability

A foundational principle of SSB is that all clients operate on the same cryptographically-signed log file (the user's local database). This means:

  • Data is fully portable; you can switch clients without losing your social graph or history.
  • Different clients can implement entirely different user experiences (social, blog, git-ssb) while interacting with the same network.
  • The metadata (follows, likes) is part of the public log, enabling rich, client-agnostic social features.
security-considerations
SECURE SCUTTLEBUTT (SSB)

Security and Privacy Considerations

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications, prioritizing user control over data and identity through cryptographic guarantees.

01

Offline-First Architecture

SSB is designed for eventual consistency and offline operation. Data is stored locally in an append-only log (the user's feed) and gossiped between peers when they connect. This architecture:

  • Eliminates reliance on central servers.
  • Ensures data availability even without an internet connection.
  • Shifts the security model from perimeter defense to local data integrity.
02

Cryptographic Identity & Feeds

Each user is identified by a public key, which also signs their entire append-only log of messages. This creates a cryptographically verifiable history where:

  • Every message is signed and immutable.
  • Identity is self-sovereign, not issued by a central authority.
  • The feed's hash chain ensures data integrity and prevents tampering with past entries.
03

Peer-to-Peer Replication (Gossip)

Data propagates via a gossip protocol where peers exchange messages from feeds they follow. This creates a redundant, distributed network without central hubs. Key security aspects include:

  • Selective replication: You only store data from people you choose to follow.
  • Network obfuscation: The social graph is not globally visible, only to connected peers.
  • Resilience against single points of failure or censorship.
04

Privacy Through Local Control

Privacy in SSB is enforced by client-side access control and encrypted messages. Users have complete control over their data because:

  • All data is stored on the user's own device.
  • Private messages use end-to-end encryption using the recipient's public key.
  • Visibility of content is managed by the client software, not a network rule.
05

Social Graph & Trust

The trust model is based on a web-of-trust established through following relationships. Security implications are:

  • You primarily see content from people you follow or are transitively connected to (friends-of-friends).
  • Sybil resistance is social, not computational; creating many fake identities doesn't grant influence without being trusted by the existing graph.
  • Moderation and blocking are performed at the client level.
06

Threat Model & Considerations

SSB's design introduces specific trade-offs. Key considerations for developers and users include:

  • Metadata Exposure: While content can be private, the fact that two peers are communicating may be visible to other nodes in the gossip network.
  • Storage Burden: Users must store all data from feeds they replicate, which grows over time.
  • Denial-of-Service: Peers can be overwhelmed by large volumes of data from malicious feeds they've chosen to follow.
FAQ

Common Misconceptions About SSB

Secure Scuttlebutt (SSB) is a unique peer-to-peer protocol often misunderstood. This section clarifies frequent points of confusion regarding its architecture, security model, and practical use.

No, Secure Scuttlebutt is fundamentally a decentralized data replication protocol that happens to be well-suited for social applications. Its core is a cryptographically-secured append-only log (the feed) that each user maintains. While apps like Patchwork and Manyverse provide social interfaces, the protocol itself is a general-purpose system for replicating data structures (like blogs, forums, or even git repositories) across a peer-to-peer network without central servers.

SECURE SCUTTLEBUTT (SSB)

Frequently Asked Questions (FAQ)

Secure Scuttlebutt (SSB) is a peer-to-peer protocol for building decentralized social networks and applications. These questions address its core concepts, mechanics, and how it differs from other distributed systems.

Secure Scuttlebutt (SSB) is a decentralized, peer-to-peer protocol for building social applications that operates without central servers. It works by having each user maintain their own append-only log, cryptographically signed with their private key, which contains all their posts and interactions. Peers replicate these logs by gossiping with each other in a process called "scuttlebutt" (naval slang for rumor), building a local database of the social graph they are interested in. Data integrity is ensured through cryptographic hashes linking each log entry, and privacy is managed through selective replication and encryption.

further-reading
SECURE SCUTTLEBUTT (SSB)

Further Reading and Resources

Secure Scuttlebutt is a peer-to-peer protocol for building decentralized social networks and applications. It uses a cryptographically-signed append-only log (the Scuttlebutt log) as its core data structure, enabling offline-first, resilient communication without central servers.

06

Comparison to Other P2P Protocols

SSB occupies a distinct niche in the decentralized protocol landscape. Key differentiators include:

  • vs. IPFS: SSB is social-graph-first, with replication following social connections, while IPFS is content-addressed and connection-agnostic.
  • vs. ActivityPub: SSB is offline-first and uses cryptographic signing for all data, whereas ActivityPub is typically server-based (federated) and often lacks cryptographic verification at the message level.
ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Secure Scuttlebutt (SSB): Decentralized Social Protocol | ChainScore Glossary