Hyperledger FireFly is the first open source Supernode: a complete stack for enterprises to build and scale secure Web3 applications.
The FireFly API for digital assets, data flows, and blockchain transactions makes it radically faster to build production-ready apps on popular chains and protocols.
The best place to learn about FireFly is in the documentation.
There you will find our Getting Started Guide, which will get you a running FireFly network of Supernodes on your local machine in a few minutes.
Your development environment will come with:
FireFly CLI | FireFly Explorer UI | FireFly Sandbox |
---|---|---|
![]() |
![]() |
![]() |
Hyperledger FireFly has a pluggable microservices architecture. Everything is pluggable, from the Blockchain technology, token ERC standards, and custom smart contracts, all the way to the event distribution layer and private database.
So if there aren't yet instructions for making FireFly a Supernode for your favorite blockchain technology - don't worry. There is almost certainly a straightforward path to plugging it in that will save you from re-building all the plumbing for your blockchain application from scratch.
There are lots of places you can contribute, regardless of whether your skills are front-end, backend-end, or full-stack.
Check out our Contributor Guide, and welcome!.
You are currently in the "core" repository, which is written in Go and hosts the API Server and central orchestration engine. Here you will find plugin interfaces to microservice connectors written in a variety of languages like TypeScript and Java, as well as heavy-lifting runtime components.
Other repositories you might be interested in containing those microservice components, user experiences, CLIs and samples.
Note that only open source repositories and plugins are listed below
- Transaction Manager - https://github.com/hyperledger/firefly-transaction-manager
- RLP & ABI encoding, KeystoreV3 utilities and secp256k1 signer runtime - https://github.com/hyperledger/firefly-signer
- FFCAPI reference connector for EVM Chains - https://github.com/hyperledger/firefly-evmconnect
- Public EVM compatible chains: Learn more in the documentation
- Permissioned Ethereum connector - https://github.com/hyperledger/firefly-ethconnect
- Private/permissioned: Hyperledger Besu / Quorum
- Hyperledger Fabric connector - https://github.com/hyperledger/firefly-fabconnect
- Tezos connector - https://github.com/hyperledger/firefly-tezosconnect
- Cardano connector - https://github.com/hyperledger/firefly-cardano
- Corda connector starter: https://github.com/hyperledger/firefly-cordaconnect
- CorDapp specific customization is required
- Tokens ERC20/ERC721 - https://github.com/hyperledger/firefly-tokens-erc20-erc721
- Tokens ERC1155 - https://github.com/hyperledger/firefly-tokens-erc1155
- HTTPS Data Exchange - https://github.com/hyperledger/firefly-dataexchange-https
- Command Line Interface (CLI) - https://github.com/hyperledger/firefly-cli
- Explorer UI - https://github.com/hyperledger/firefly-ui
- Node.js SDK - https://github.com/hyperledger/firefly-sdk-nodejs
- Sandbox / Exerciser - https://github.com/hyperledger/firefly-sandbox
- Samples - https://github.com/hyperledger/firefly-samples
- FireFly Performance CLI: https://github.com/hyperledger/firefly-perf-cli
- Helm Charts for Deploying to Kubernetes: https://github.com/hyperledger/firefly-helm-charts
āāāāāāāāāāāā āāāāāāāāāāāāāāāāā
ā cmd āāā⤠firefly [Ff]ā - CLI entry point
āāāāāāāāāāāā ā ā - Creates parent context
ā ā - Signal handling
āāāāāāā¬āāāāāāāāāā
ā
āāāāāāāāāāāā āāāāāāā“āāāāāāāāāā - HTTP listener (Gorilla mux)
ā internal āāā⤠api [As]ā * TLS (SSL), CORS configuration etc.
āāāāāāāāāāāā ā server ā * WS upgrade on same port
ā ā - REST route definitions
āāāāāāā¬āāāāāāāāāā * Simple routing logic only, all processing deferred to orchestrator
ā
āāāāāāā“āāāāāāāāāā - REST route definition framework
ā openapi [Oa]ā * Standardizes Body, Path, Query, Filter semantics
ā spec | - OpenAPI 3.0 (Swagger) generation
āāāāāāā¬āāāāāāāāāā * Including Swagger. UI
ā
āāāāāāā“āāāāāāāāāā - WebSocket server
ā [Ws]ā * Developer friendly JSON based protocol business app development
ā websockets ā * Reliable sequenced delivery
āāāāāāā¬āāāāāāāāāā * _Event interface [Ei] supports lower level integration with other compute frameworks/transports_
ā
āāāāāāā“āāāāāāāāāā - Extension point interface to listen for database change events
ā admin [Ae]ā * For building microservice extensions to the core that run externally
ā events | * Used by the Transaction Manager component
āāāāāāā¬āāāāāāāāāā * Filtering to specific object types
ā
āāāāāāā“āāāāāāāāāā - Core data types
ā fftypes [Ft]ā * Used for API and Serialization
ā ā * APIs can mask fields on input via router definition
āāāāāāā¬āāāāāāāāāā
ā
āāāāāāā“āāāāāāāāāā - Core runtime server. Initializes and owns instances of:
ā [Or]ā * Components: Implement features
āāāāāāāāā¬āāā⤠orchestrator ā * Plugins: Pluggable infrastructure services
ā ā ā ā - Exposes actions to router
ā ā āāāāāāāāāāāāāāāāā * Processing starts here for all API calls
ā ā
ā Components: Components do the heavy lifting within the engine
ā ā
ā ā āāāāāāāāāāāāāāāāā - Integrates with Blockchain Smart Contract logic across blockchain technologies
ā āāāā⤠contract [Cm]ā * Generates OpenAPI 3 / Swagger definitions for smart contracts, and propagates to network
ā ā ā manager ā * Manages listeners for native Blockchain events, and routes those to application events
ā ā āāāāāāāāāāāāāāāāā * Convert to/from native Blockchain interfaces (ABI etc.) and FireFly Interface [FFI] format
ā ā
ā ā āāāāāāāāāāāāāāāāā - Maintains a view of the entire network
ā āāāā⤠network [Nm]ā * Integrates with network permissioning [NP] plugin
ā ā ā map ā * Integrates with broadcast plugin
ā ā āāāāāāāāāāāāāāāāā * Handles hierarchy of member identity, node identity and signing identity
ā ā
ā ā āāāāāāāāāāāāāāāāā - Broadcast of data to all parties in the network
ā āāāā⤠broadcast [Bm]ā * Implements dispatcher for batch component
ā ā ā manager | * Integrates with shared storage interface [Ss] plugin
ā ā āāāāāāāāāāāāāāāāā * Integrates with blockchain interface [Bi] plugin
ā ā
ā ā āāāāāāāāāāāāāāāāā - Send private data to individual parties in the network
ā āāāā⤠private [Pm]ā * Implements dispatcher for batch component
ā ā ā messaging | * Integrates with the data exchange [Dx] plugin
ā ā āāāāāāāā¬āāāāāāāāā * Messages can be pinned and sequenced via the blockchain, or just sent
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Groups of parties, with isolated data and/or blockchains
ā ā ā group [Gm]ā * Integrates with data exchange [Dx] plugin
ā ā ā manager ā * Integrates with blockchain interface [Bi] plugin
ā ā āāāāāāāāāāāāāāāāā
ā ā
ā ā āāāāāāāāāāāāāāāāā - Private data management and validation
ā āāāā⤠data [Dm]ā * Implements dispatcher for batch component
ā ā ā manager ā * Integrates with data exchange [Dx] plugin
ā ā āāāāāāāā¬āāāāāāāāā * Integrates with blockchain interface [Bi] plugin
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - JSON data schema management and validation (architecture extensible to XML and more)
ā ā ā json [Jv]ā * JSON Schema validation logic for outbound and inbound messages
ā ā ā validator ā * Schema propagation
ā ā āāāāāāāā¬āāāāāāāāā * Integrates with broadcast plugin
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Binary data addressable via ID or Hash
ā ā ā blobstore [Bs]ā * Integrates with data exchange [Dx] plugin
ā ā ā ā * Hashes data, and maintains mapping to payload references in blob storage
ā ā āāāāāāāāāāāāāāāāā * Integrates with blockchain interface [Bi] plugin
ā ā
ā ā āāāāāāāāāāāāāāāāā - Download from shared storage
ā āāāā⤠shared [Sd]ā * Parallel asynchronous download
ā ā ā download ā * Resilient retry and crash recovery
ā ā āāāāāāāāāāāāāāāāā * Notification to event aggregator on completion
ā ā
ā ā āāāāāāāāāāāāāāāāā
ā āāāā⤠identity [Im] ā - Central identity management service across components
ā ā ā manager ā * Resolves API input identity + key combos (short names, formatting etc.)
ā ā ā ā * Resolves registered on-chain signing keys back to identities
ā ā āāāāāāāāāāāāāāāāā * Integrates with Blockchain Interface and pluggable Identity Interface (TBD)
ā ā
ā ā āāāāāāāāāāāāāāāāā - Keeps track of all operations performed against external components via plugins
ā āāāā⤠operation [Om]ā * Updates database with inputs/outputs
ā ā ā manager ā * Provides consistent retry semantics across plugins
ā ā āāāāāāāāāāāāāāāāā
ā ā
ā ā āāāāāāāāāāāāāāāāā - Private data management and validation
ā āāāā⤠event [Em]ā * Implements dispatcher for batch component
ā ā ā manager ā * Integrates with data exchange [Dx] plugin
ā ā āāāāāāāā¬āāāāāāāāā * Integrates with blockchain interface [Bi] plugin
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Handles incoming external data
ā ā ā [Ag]ā * Integrates with data exchange [Dx] plugin
ā ā ā aggregator ā * Integrates with shared storage interface [Ss] plugin
ā ā ā ā * Integrates with blockchain interface [Bi] plugin
ā ā ā ā - Ensures valid events are dispatched only once all data is available
ā ā āāāāāāāā¬āāāāāāāāā * Context aware, to prevent block-the-world scenarios
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Subscription manager
ā ā ā [Sm]ā * Creation and management of subscriptions
ā ā ā subscription ā * Creation and management of subscriptions
ā ā ā manager ā * Message to Event matching logic
ā ā āāāāāāāā¬āāāāāāāāā
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Manages delivery of events to connected applications
ā ā ā event [Ed]ā * Integrates with data exchange [Dx] plugin
ā ā ā dispatcher ā * Integrates with blockchain interface [Bi] plugin
ā ā āāāāāāāāāāāāāāāāā
ā ā
ā ā āāāāāāāāāāāāāāāāā - Token creation/transfer initiation, indexing and coordination
ā āāāā⤠asset [Am]ā * Fungible tokens: Digitized value/settlement (coins)
ā ā ā manager ā * Non-fungible tokens: NFTs / globally uniqueness / digital twins
ā ā āāāāāāāāāāāāāāāāā * Full indexing of transaction history
ā ā [REST/WebSockets]
ā ā āāāāāāā“āāāāāāāāāāāāāā āāāāāāāāāāāā āā
ā ā ā ERC-20 / ERC-721 āāāā⤠ERC-1155 āāāā⤠Simple framework for building token connectors
ā ā āāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāā āā
ā ā
ā ā āāāāāāāāāāāāāāāāā
ā āāāā⤠sync / [Sa] ā - Sync/Async Bridge
ā ā ā async bridge ā * Provides synchronous request/reply APIs
ā ā ā ā * Translates to underlying event-driven API
ā ā āāāāāāāāāāāāāāāāā
ā ā
ā ā āāāāāāāāāāāāāāāāā - Aggregates messages and data, with rolled up hashes for pinning
ā āāāā⤠batch [Ba]ā * Pluggable dispatchers
ā ā ā manager ā - Database decoupled from main-line API processing
ā ā ā ā * See architecture diagrams for more info on active/active sequencing
ā ā āāāāāāāā¬āāāāāāāāā - Manages creation of batch processor instances
ā ā ā
ā ā āāāāāāāā“āāāāāāāāā - Short lived agent spun up to assemble batches on demand
ā ā ā batch [Bp]ā * Coupled to an author+type of messages
ā ā ā processor ā - Builds batches of 100s messages for efficient pinning
ā ā ā ā * Aggregates messages and data, with rolled up hashes for pinning
ā ā āāāāāāāāāāāāāāāāā - Shuts down automatically after a configurable inactivity period
ā ... more TBD
ā
Plugins: Each plugin comprises a Go shim, plus a remote agent microservice runtime (if required)
ā
ā āāāāāāāāāāāāāāāāā - Blockchain Interface
āāāāāāāāāāāā⤠[Bi]ā * Transaction submission - including signing key management
ā ā blockchain ā * Event listening
ā ā interface ā * Standardized operations, and custom on-chain coupling
ā āāāāāāā¬āāāāāāāāāā
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā¬-āāāāāāāāāāāāāāāāāāāā¬-āāāāāāāāāāāāāāāāāāāā
ā āāāāāāā“āāāāāāāāāā āāāāāāāāā“āāāāāāāā āāāāāāāāā“āāāāāāāāā āāāāāāāāā“āāāāāāāāā āāāāāāāāā“āāāāāāāāā
ā ā ethereum ā ā fabric ā ā corda/cordapps ā ā tezos ā ā cardano ā
ā āāāāāāā¬āāāāāāāāāā āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā
ā [REST/WebSockets]
ā āāāāāāā“āāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāā āā
ā ā transaction manager [Tm] āāāā⤠Connector API [ffcapi] āāāā⤠Simple framework for building blockchain connectors
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāā āā
ā
ā āāāāāāāāāāāāāāāāā - Token interface
āāāāāāāāāāāā⤠tokens [Ti]ā * Standardizes core concepts: token pools, transfers, approvals
ā ā interface ā * Pluggable across token standards
ā āāāāāāāāāāāāāāāāā * Supports simple implementation of custom token standards via microservice connector
ā [REST/WebSockets]
ā āāāāāāā“āāāāāāāāāāāāāā āāāāāāāāāāāā āā
ā ā ERC-20 / ERC-721 āāāā⤠ERC-1155 āāāā⤠Simple framework for building token connectors
ā āāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāā āā
ā
ā āāāāāāāāāāāāāāāāā - P2P Content Addressed Filesystem
āāāāāāāāāāāā⤠shared [Si]ā * Payload upload / download
ā ā storage ā * Payload reference management
ā ā interface ā
ā āāāāāāā¬āāāāāāāāāā
ā ā
ā āāāāāāāāāā ... extensible to any shared storage system, accessible to all members
ā āāāāāāā“āāāāāāāāāā
ā ā ipfs ā
ā āāāāāāāāāāāāāāāāā
ā
ā āāāāāāāāāāāāāāāāā - Private Data Exchange
āāāāāāāāāāāā⤠data [Dx]ā * Blob storage
ā ā exchange ā * Private secure messaging
ā āāāāāāā¬āāāāāāāāāā * Secure file transfer
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāā ... extensible to any private data exchange tech
ā āāāāāāā“āāāāāāāāāā āāāāāāāāā“āāāāāāāā
ā ā https / MTLS ā ā Kaleido ā
ā āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā
ā
ā āāāāāāāāāāāāāāāāā - API Authentication and Authorization Interface
āāāāāāāāāāāā⤠api auth [Aa]ā * Authenticates security credentials (OpenID Connect id token JWTs etc.)
ā ā ā * Extracts API/user identity (for identity interface to map)
ā āāāāāāā¬āāāāāāāāāā * Enforcement point for fine grained API access control
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāā ... extensible other single sign-on technologies
ā āāāāāāā“āāāāāāāāāā āāāāāāāāā“āāāāāāāā
ā ā apikey ā ā jwt ā
ā āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā
ā
ā āāāāāāāāāāāāāāāāā - Database Interactions
āāāāāāāāāāāā⤠database [Di]ā * Create, Read, Update, Delete (CRUD) actions
ā ā interface ā * Filtering and update definition interface
ā āāāāāāā¬āāāāāāāāāā * Migrations and Indexes
ā ā
ā āāāāāāāāāā ... extensible to NoSQL (CouchDB / MongoDB etc.)
ā āāāāāāā“āāāāāāāāāā
ā ā sqlcommon ā
ā āāāāāāā¬āāāāāāāāāā
ā āāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāā ... extensible other SQL databases
ā āāāāāāā“āāāāāāāāāā āāāāāāāāā“āāāāāāāāā
ā ā postgres ā ā sqlite3 ā
ā āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā
ā
ā āāāāāāāāāāāāāāāāā - Connects the core event engine to external frameworks and applications
āāāāāāāāāāāā⤠event [Ei]ā * Supports long-lived (durable) and ephemeral event subscriptions
ā ā interface ā * Batching, filtering, all handled in core prior to transport
ā āāāāāāā¬āāāāāāāāāā * Interface supports connect-in (websocket) and connect-out (broker runtime style) plugins
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāā ... extensible to additional event buses (Kafka, NATS, AMQP etc.)
ā āāāāāāā“āāāāāāāāāā āāāāāāāāā“āāāāāāāāā
ā ā websockets ā ā webhooks ā
ā āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā
ā ... more TBD
Additional utility frameworks
āāāāāāāāāāāāāāāāā - REST API client
ā rest [Re]ā * Provides convenience and logging
ā client ā * Standardizes auth, config and retry logic
āāāāāāāāāāāāāāāāā * Built on Resty
āāāāāāāāāāāāāāāāā - WebSocket client
ā wsclient [Wc]ā * Provides convenience and logging
ā ā * Standardizes auth, config and reconnect logic
āāāāāāāāāāāāāāāāā * Built on Gorilla WebSockets
āāāāāāāāāāāāāāāāā - Translation framework
ā i18n [In]ā * Every translations must be added to `en_translations.json` - with an `FF10101` key
ā ā * Errors are wrapped, providing extra features from the `errors` package (stack etc.)
āāāāāāāāāāāāāāāāā * Description translations also supported, such as OpenAPI description
āāāāāāāāāāāāāāāāā - Logging framework
ā log [Lo]ā * Logging framework (logrus) integrated with context based tagging
ā ā * Context is used throughout the code to pass API invocation context, and logging context
āāāāāāāāāāāāāāāāā * Example: Every API call has an ID that can be traced, as well as a timeout
āāāāāāāāāāāāāāāāā - Configuration
ā config [Co]ā * File and Environment Variable based logging framework (viper)
ā ā * Primary config keys all defined centrally
āāāāāāāāāāāāāāāāā * Plugins integrate by returning their config structure for unmarshaling (JSON tags)