-
Cryptocurrencies
-
Exchanges
-
Media
All languages
Cryptocurrencies
Exchanges
Media
Trinity is a general off-chain expansion solution, which uses asset certificates for on-chain credit endorsement and state channels for off-chain transactions, thereby achieving instant payment of assets, low-cost transactions, and good scalability and transactions privacy protection.
Trinity is committed to helping users use blockchain services conveniently, quickly and safely by providing fast and secure off-chain payment channels.
1. Proof of assets
In the off-chain expansion scheme, asset proof is a key factor, which is equivalent to the settlement reserve. It is realized by using digital signature and hash lock transmission, that is to say, it mortgages the digital assets on the main chain Trading.
In the above figure, suppose there are two transaction participants, one is Alice and the other is Merchant. Proof of assets means that Alice and Merchant need to mortgage and lock the token assets on the main chain, and finally generate a certificate of assets. For example, Alice owns 1,000 NEO NEP-5 assets, and Merchant owns 1,000 NEO NEP-5 assets. Before off-chain transactions are transferred, these tokens of the two can be mortgaged and frozen according to the required amount as proof of assets. If proof of assets cannot be generated, token transfers cannot be performed. Proof of Assets is a binding agreement executed on the NEO blockchain. Through digital signatures, it is ensured that both parties to the transaction cannot withdraw from the value transfer at will. In addition, because in transactions outside the chain, only the two parties to the transaction can access the tokens in the smart contract with the payment channel, which means that the Trinity asset certificate is as binding as the main chain transaction.
Once the main chain token assets are frozen, both parties to the transaction generate asset certificates, and both parties can immediately conduct off-chain transfer transactions through the payment channel, and there is no limit on the number of times. When the two parties complete the transaction, they can transfer the assets back to the main chain, and register the change of the asset balance on the main chain, and the transactions outside the chain will not be recorded. It will not broadcast to the entire network, protecting user privacy.
2. Smart contract
The smart contracts deployed on the chain mainly provide the following functions:
1) Provide a shared transaction rule for both parties involved in the transaction
2) Issue certified transaction tokens to provide protection for off-chain payments
3) Smart arbitration, if one of the two parties breaks the contract , the smart contract can justly judge and punish the breacher
4) Channel management, close the channel, settle the off-chain transaction and publish it on the chain
3. Status channel
Trinity manages state channels through smart contracts on the chain to authenticate participants, lock/unlock deposits, and adjudicate disputes, and realize off-chain transactions through the Trinity off-chain protocol.
Transactions under the chain
All transactions under the chain must be encoded according to the format of the asset certificate to ensure the communication consistency and security of the channel. These information include:
1) Transaction sequence
2) Amount transferred
3) Pending
4) Root node of transaction Merkle tree
5) Signature containing all of the above
The core of Trinity is the state channel. In order to allow the state channel to be used by more users, so as to build the ecological habit of the entire micropayment, the use of the state channel itself is free. That is, without holding any TNC, the basic state channel service provided by Trinity can also be used.
In order to ensure the availability of the state channel, Trinity requires the cooperation of many participants, and TNC can play an important role in stimulating and balancing.
TNC usage scenarios:
1) Unified network settlement assets
When the channel is established, TNC is used as asset collateral, which not only provides an easy-to-use unified settlement method, but also for those who do not want For small and medium-sized nodes or users who have resources to synchronize the entire chain, using TNC is the most direct and convenient way. The unified settlement mechanism alleviates unnecessary exchange overhead for off-chain and on-chain transactions.
2) Trinity network construction bonus
Trinity provides state channel routing to enhance the convenience of transactions across the network. Or state interaction and value transmission between nodes, which provides Trinity network with higher flexibility and convenience. TNC, as a network integral, can effectively reward the intermediate state channel that the channel route passes through, so that more nodes Or users are willing to participate in the channel of the network to provide guarantee for more efficient asset circulation.
3) Value-added services of the Trinity network
Trinity is a network that values privacy protection. In Trinity, a number of technologies including zero-knowledge proof and mixed currency transactions are used to ensure data security , to enhance user privacy protection, in the Trinity network, TNC can be used to pay for more privacy protection services.
Trinity network nodes also provide value-added services such as QoS for state channels, connection-oriented channel routing, gateway services for light clients, and channel state detection proxy services. These nodes can obtain rewards for providing value-added services by charging TNC.
DAPP developers can also customize and develop value-added services based on Trinity's channel service layer. These value-added services can be provided to users of the Trinity network for direct use, and DAPP developers can get paid by charging TNC.
4) Network service fee
Trinity Network is committed to providing digital asset services for small and medium-sized enterprises. For small and medium-sized enterprises that use Trinity Network to issue or manage digital assets, TNC can be used to Pay for the required services.
5) Enterprise customized service fee
If some enterprises need customized services, such as their own independent state channel nodes and highly customized wallets, these customized fees need to be paid by TNC way to provide.
6) Incentives for TNC holders and community developers
For developers who continue to pay attention to and support the Trinity community, Trinity will reward them with TNC tokens to attract more outstanding More developers join Trinity's community development to continuously improve and optimize the Trinity protocol.
For users who hold TNC, Trinity will distribute TNC to TNC holders in the form of rewards from time to time to encourage more people to participate in Trinity's network construction.
With the continuous development of Trinity's entire network and the increasing number of collaborators involved, the usage scenarios and value of TNC will continue to increase.