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
- 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 â
â âââââââĴââââââââââ âââââââââââââââââ ââââââââââââââââââ ââââââââââââââââââ
â [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)