You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Fabric Token SDK` is a set of API and services that let developers create
8
-
token-based distributed application on Hyperledger Fabric.
7
+
The `Fabric Token SDK` provides a collection of APIs and services that streamline development for token-based distributed applications.
9
8
10
9
# Disclaimer
11
10
@@ -15,17 +14,16 @@ The project will be subject to rapid changes to complete the open-sourcing proce
15
14
# Useful Links
16
15
17
16
-[`Documentation`](./docs/design.md): Discover the design principles of the Fabric Token SDK.
18
-
-[`Samples`](./samples/README.md): A collection of sample applications that demonstrate the use of the Fabric Token SDK.
17
+
-[`Fabric Samples`](https://github.com/hyperledger/fabric-samples/tree/main/token-sdk) Token SDK sample application is the
18
+
quickest way to get a full network running with a REST API to issue, transfer and redeem tokens right away.
19
19
-`Feedback`: Your help is the key to the success of the Fabric Token SDK.
20
20
- Submit your issues [`here`][`fabric-token-sdk` Issues].
21
21
- Found a bug? Need help to fix an issue? You have a great idea for a new feature? Talk to us! You can reach us on
22
22
[Discord](https://discord.gg/hyperledger) in #fabric-token-sdk.
23
23
24
24
-[`Fabric Smart Client`](https://github.com/hyperledger-labs/fabric-smart-client): The Token SDK leverages the
25
25
`Fabric Smart Client` for transaction orchestration, storing tokens and wallets, and more. Check it out.
26
-
-[Fabric Samples](https://github.com/hyperledger/fabric-samples/tree/main/token-sdk) Token SDK sample application is the
27
-
quickest way to get a full network running with a REST API to issue, transfer and redeem tokens right away.
28
-
26
+
-
29
27
# Getting started
30
28
31
29
Clone the code and make sure it is on your `$GOPATH`.
@@ -81,34 +79,42 @@ If you want to provide your own versions of the fabric binaries then just set `F
81
79
In this comprehensive guide, we'll walk you through two essential aspects of the Fabric Token-SDK. Firstly, you'll learn how to develop a straightforward token application to manage a currency. You'll grasp the fundamentals of creating tokens, and implementing transaction logic using the Fabric Token-SDK. Once you've mastered the application development, we'll then show you how to effortlessly deploy it in your existing Fabric network, ensuring a seamless integration with your blockchain infrastructure. By the end of this tutorial, you'll be equipped with the skills to expand your blockchain capabilities and unleash the true potential of decentralized currency management. (Refers to [Fabric Samples](https://github.com/hyperledger/fabric-samples/tree/main/token-sdk))
82
80
83
81
84
-
<!-- markdown-link-check-disable -->
85
82
# Motivation
86
83
87
-
[Hyperledger Fabric]('https://wiki.hyperledger.org/display/fabric') is a permissioned, modular, and extensible open-source DLT platform. Fabric architecture follows a novel `execute-order-validate` paradigm that supports distributed execution of untrusted code in an untrusted environment. Indeed, Fabric-based distributed applications can be written in any general-purpose programming language.
88
-
Fabric does not depend on a native cryptocurrency as it happens for existing blockchain platforms that require “smart-contracts” to be written in domain-specific languages or rely on a cryptocurrency.
84
+
**Hyperledger Fabric: Blockchain Built for Business**
85
+
86
+
Hyperledger Fabric ([https://hyperledger-fabric.readthedocs.io/](https://hyperledger-fabric.readthedocs.io/)) is an open-source platform designed for permissioned blockchain networks. It offers a modular and extensible architecture, allowing for customization and future growth. Unlike traditional blockchains, Fabric applications can be written in any general-purpose programming language, making them more accessible to developers.
87
+
88
+
**Beyond Cryptocurrencies: Tokenizing the World**
89
89
90
-
Blockchain technologies are accelerating the shifting towards a decentralised economy. Cryptocurrencies are reshaping the financial landscape to the extent that even central banks are now testing the technology to propose what is known as the `central bank digital currency`. But it is more than this. Real-world assets are being tokenised as fungible or non-fungible assets represented by tokens on a blockchain. Thus enabling business opportunities to extract more value.
90
+
While blockchain is often associated with cryptocurrencies, its potential extends far beyond. Fabric allows for the creation of tokens that represent real-world assets, both fungible (like loyalty points) and non-fungible (like unique digital artwork). This opens doors for new business models and unlocks additional value from existing assets.
91
91
92
-
Developing token-based applications for Hyperledger Fabric is not easy. Fabric does not provide an out-of-the-box SDK that let developers create tokens that represents any kind of asset. Developers are left on their own and this exposes them to useless duplication of code and security vulnerabilities.
92
+
**The Challenge: Building Tokenized Applications**
93
93
94
-
What would happen if the developers could use a `Fabric Token SDK` that let:
95
-
- Create tokens that represents any kind of asset (baked by a real-world asset or virtual);
96
-
- Choose the privacy level that best fits the use-case without changing the application logic;
97
-
- Orchestrate token transaction in a peer-to-peer fashion;
98
-
- Perform atomic swaps;
99
-
- Audit transactions before they get committed;
100
-
- Interoperate with token systems in other blockchain networks;
101
-
- Add a token layer to existing Fabric distributed application?
94
+
Developing applications that leverage tokens on Hyperledger Fabric can be complex. Fabric lacked a built-in SDK for creating and managing tokens, forcing developers to build solutions from scratch. This not only led to wasted effort with duplicated code, but also exposed applications to potential security vulnerabilities.
102
95
103
-
Developing Enterprise Token-based distributed applications would become simpler and more secure.
104
-
<!-- markdown-link-check-disable -->
96
+
**Introducing the Fabric Token SDK: Streamlining Tokenized Development (and Beyond)**
97
+
98
+
The Fabric Token SDK has evolved beyond its initial focus on Hyperledger Fabric. It now empowers developers with the following capabilities across various platforms, including permissioned blockchains like Fabric and even centralized systems like Orion:
99
+
100
+
***Tokenization Made Easy:** Create tokens representing any type of asset, be it physical or digital.
101
+
***Privacy by Design:** Select the appropriate privacy level for your specific use case, without modifying your application logic.
102
+
***Peer-to-Peer Transactions:** Orchestrate token transfers directly between users, streamlining the process.
103
+
***Atomic Swaps:** Facilitate secure exchanges of different tokens without relying on intermediaries.
104
+
***Transaction Auditing:** Review transactions before they are finalized, ensuring accuracy and compliance.
105
+
***Interoperability:** Connect with token systems on other blockchain networks, fostering broader ecosystems.
106
+
***Seamless Integration:** Add a token layer to existing applications, regardless of platform, with minimal effort.
107
+
108
+
With a robust Fabric Token SDK, developing secure and efficient enterprise-grade tokenized applications becomes a reality, offering flexibility for developers to choose the platform that best suits their needs.
105
109
106
110
# Testing Philosophy
107
111
108
112
[Write tests. Not too many. Mostly Integration](https://kentcdodds.com/blog/write-tests)
109
113
110
114
We also believe that when developing new functions running tests is preferable than running the application to verify the code is working as expected.
111
115
116
+
For more information about our integration tests, look [`here`](./docs/itests.md).
117
+
112
118
# Versioning
113
119
114
120
We use [`SemVer`](https://semver.org/) for versioning. For the versions available, see the [`tags on this repository`](https://github.com/hyperledger-labs/fabric-token-sdk/tags).
0 commit comments