Skip to content

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.

License

Notifications You must be signed in to change notification settings

dwertent/firefly

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hyperledger FireFly

codecov Go Report Card FireFy Documentation build OpenSSF Best Practices

Hyperledger FireFly

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.

Start using Hyperledger FireFly

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
CLI UI Sandbox

Engage with the community

Technical architecture

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.

Hyperledger FireFly Architecture Overview

Start contributing to Hyperledger FireFy

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!.

Other repos

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

Blockchain connectivity

Token standards

Private data bus connectivity

Developer ecosystem

FireFly Core code hierarchy

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 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)

About

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.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 97.4%
  • PLpgSQL 1.1%
  • Java 0.8%
  • Shell 0.2%
  • TypeScript 0.2%
  • Makefile 0.1%
  • Other 0.2%