bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 3쪽 중 2쪽
a bond.
The repayment order includes a payment to the investor for the bond.
The payment can be in any cryptocurrency supported by the Creditcoin
network (e.g., Bitcoin, Ethereum, or ERC-20).
The collector will pay the Creditcoin transaction fee to the Creditcoin
network for creating the repayment order.
3. Searching for an Accepted Repayment Order
The collector can search for accepted repayment orders on the Creditcoin
network for free.
Creditcoin
14
4. Close a Repayment Order
After a repayment order gets accepted by the investor, the collector can
finalize the purchase of the bond by registering the payment transaction
ID. In other words, the collector closes a repayment order. The payment
happens on another blockchain, and the collector may have to pay a
transaction fee on the blockchain.
Once the repayment order is closed, repayment of the loan goes to the
new owner - the collector.
The collector will pay Creditcoin as a transaction fee to the Creditcoin
network to close the repayment order.
Conclusion
Creditcoin network has been built to support various investment scenarios and
assist in decision making and transitioning of the relevant artifacts through their
lifecycle.
Creditcoin
15
3. Software Architecture
Introduction
Purpose
This document provides a comprehensive architectural overview of the system,
using several different architectural views to depict various important aspects of
the system.
Scope
This Software Architecture Document provides an architectural overview of the
Creditcoin system developed by Gluwa, Inc. to provide a decentralized credit
network.
Overview
The Creditcoin system is a decentralized credit network for investors and
borrowers and to facilitate efficient and safe transactions between parties.
A special cryptocurrency named Creditcoin is used as an aid in performing
transactions and incentivizing parties to support, develop and expand the
network and keep it operational.
Architectural Goals and Constraints
1. To support decentralization, the network is based on blockchain (distributed
ledger) technology.
2. To reduce the work required to build a robust and trustworthy foundation
for the network, an open source blockchain project was selected based on
feature completeness and ease of configuration and modification (Parity
Substrate).
3. The network supports the booking of investment and borrowing orders in a
credit market order book for which canceled or outdated orders are of little
interest.
4. The network supports matchmaking, communication between involved
parties, and deal booking. The latter is stored permanently on the ledger and
may be used for dispute resolution and credit history verification.
Creditcoin
16
5. The network supports interoperability with other cryptocurrencies
through a generic gateway that may be customized for use with a
particular cryptocurrency.
6. The network uses a Nominated Proof of Stake consensus algorithm to
incentivize validators and prevent network abuse.
7. All performance, bandwidth and storage requirements were taken into
consideration to develop the architecture.
Subsystems and Layering
The Creditcoin system is built on top of the Substrate framework, which
provides an implementation of a distributed ledger and interoperation
between distributed components of the network. The system provides:
1. An implementation of the Creditcoin transaction family—a group
of operations or transaction types allowed on the ledger—which
supports all required operations.
2. An implementation of a consensus algorithm to support the
requirements.
3. An implementation of a generic gateway to interconnect with other
cryptocurrency networks, such as Bitcoin, Ethereum, etc.
A family of client applications was developed for testing and use by end
users, which includes a command-line client and a staking dashboard to
manage nominations and staked tokens.
Processes
Each Creditcoin node runs a validator, Creditcoin runtime, and Creditcoin
consensus plugin. Additionally, “authority nodes” are run to allow
confirmation of transactions on other cryptocurrency networks.
Client applications send requests to a validator to perform operations on
data for a given transaction; the validator then dispatches the request to
a relevant processor. The processor submits the transaction to the ledger.
Clients read the current state of data that has been made persistent by
recording it on the ledger.
Creditcoin
17
Deployment
In the final distributed system, client applications can connect with validators
across local or global IP networks. Any validator accepts transactions from one
or more clients and clients send transactions to one or more validators.
Implementation Notes
Gluwa will contribute initial validators and infrastructure on Ubuntu virtual
machines running in Azure. The Creditcoin runtime is a WASM binary. The
primary development language for Creditcoin is Rust. Typescript is used for the
staking dashboard and the CLI client.
Creditcoin
18
1. CTC Token Description
Creditcoin’s CTC is a proprietary utility token that fuses together a decentralized
credit investment economy. It facilitates transactions between lenders and
borrowers, and provides for the recording of transactions onto the Creditcoin
blockchain, thus creating an immutable record of credit histories for borrowers.
As the ecosystem/network grows, lenders will have an increasing array of
borrowers with scored credit histories to choose from, and vice versa.
I V. CTC T okenomics, Rewards, and Penalties
19
2. CTC (Mainnet) vs CTC (ERC-20)
The Creditcoin Network has two different types of tokens. Whilst these are both
commonly called CTC, and represent two sides of the same coin, they actually
have two different purposes. It’s important you understand this difference.
CTC (Mainnet) - As the name implies, these are CTC tokens used on the
Creditcoin mainnet, and represent the primary utility token of the Creditcoin
Network. CTC (mainnet) tokens are used for transaction fees as well as staking
rewards. The primary market for CTC (mainnet) tokens are financial institutions
and RWA fintech lenders recording their transactions on the Creditcoin network.
CTC (mainnet) tokens are burned when used.
CTC (ERC-20) - CTC (ERC-20) are the tokens listed on crypto exchanges
and represent the trading and vesting token of the Creditcoin Network. On
centralized exchanges, you will see CTC (ERC-20) represented with the CTC
ticker, while on decentralized exchanges, you may see CTC as G-CRE. CTC
(ERC-20) aka G-CRE can be swapped to CTC (mainnet) using a one-way 1:1
swap function.
CTC T okenomics, Rewards, and Penalties
20
3. Validators and Nominators
Creditcoin is built on a Nominated Proof-of-Stake consensus (NPoS) algorithm
that rewards validators and nominators for participating in good faith and
penalizes bad actors who may damage the integrity of the network.
Validators participate in consensus by creating new blocks and finalizing
previous ones. To be part of the active validator set, validator candidates must
have stake behind them. It can be theirs or from third parties, which we call
nominators. All elected validators have equal block production rights, no matter
the stake behind them.
Nominators can participate in Proof of Stake consensus without running their
own validator nodes. They do this by backing up validators with their stake. By
doing this, they share rewards and slashing with elected validators.
Potential validators indicate their intention to be validator candidates. The
candidate list is made public so that nominators can submit a list of their
preferred candidates.
CTC T okenomics, Rewards, and Penalties
CTC (Mainnet) CTC (ERC-20) AKA G-CRE
Purpose/Utility Mainnet transactions and staking rewards Trading and vesting
Staking Rewards ✓⃞■ ✗
Acquisition Method Swap or staking Buy on exchange
Listed on Exchanges ✗ ✓⃞■
Swappable ✗ ✓⃞■
21
4. Validator Election
The validator election process involves three distinct steps; Nomination, Winner
Selection, and Stake Distribution. These three steps are repeated for each Era.
Each Era is composed of 2 Epochs and each Epoch is 12 Hours. Therefore,
Validators are re-elected every 24 hours. 50 Validators will be elected in each
Era. This number will increase as the network grows and becomes more robust.
In the Nomination step, Validators mark themselves as candidates and
nominators can decide to support them with their stake. One nominator can vote
for several validators in the same Era. In the Selection step, winning validators
are selected by summing up all the stake that is supporting them. Those
Validators with the most votes/stake are elected and become part of the active
set for the upcoming Era.
Once the network decides on the active validator set, it must decide who is
responsible for producing each block in the Epoch. The slot distribution is
achieved through a combination of ‘Blind Assignment for Blockchain Extension’
(BABE) and Aura.
BABE is the block production mechanism that runs between the validator nodes
and determines the authors of new blocks. BABE assigns block production slots
to validators according to stake and using a Verifiable Random Function. Slots
are discrete units of time of approximately 15 seconds in length. Validators
participate in a lottery for every slot, which will inform whether or not they are
the block producer candidate for that slot. Due to the specifics of the lottery,
multiple or no validators can be selected for a slot, resulting in either a race
condition or an empty slot (inconsistent block time).
In order to ensure that any empty slots are assigned and produced, the Aura
approach is used. Aura is a deterministic and much simpler process to distribute
slots.
A given Validator is allowed a maximum of 512 Nominators.
CTC T okenomics, Rewards, and Penalties
22
5. Reward Distribution
Validators and Nominators are rewarded at the end of each Era, according to
the number of Era Points a validator has earned by producing blocks. The total
reward is calculated using the era duration and the percentage of staked tokens.
Assuming all validators are honest and are 100% online when required, block
production slots for an era are distributed evenly among them, no matter their
total stake. Ideally, they all earn a similar amount of Era Points and thus a similar
amount of tokens.
Each block will offer a reward of 2 CTC that will be distributed between the
Validator and the Nominators, proportionally to the amount of CTC Staked.
Validators may set a commission fee that will be paid before the reward is split.
For example, if a validator sets a commission of 10%, the total shared reward for
a single block would be 1.8 CTC. If a particular nominator has staked 20% of the
CTC for this validator, they would receive 20% of the 1.8 CTC from that block.
6. Slashing and Penalties
If a Validator shows harmful behavior, a percentage of their staked tokens will
get Slashed as a penalty, meaning they will lose them. Any Nominators who are
actively nominating a Validator that is Slashed will also be Slashed, and will be
stripped of their tokens and rewards. This incentivizes thoughtful voting from
nominators. Node operators can also send reports to the network when they
detect a particular offense. If the report turns out to be valid, they are rewarded
with a portion of the Slashed tokens.
CTC T okenomics, Rewards, and Penalties
23
There are three types of offences in the Creditcoin network which can lead to a
validator getting slashed: inactivity, block production, and block finalization.
1. Inactivity
If more than 10% of the network is offline, it is considered a coordinated
attack. Slashing begins and climbs linearly up to 7% based on the percentage
of the network that is offline. If less than 10% of the network is offline there is
no slashing.
Inactivity Slashing Example
Here’s an easy-to-follow scenario of how slashing works for inactivity. Based
on the chart, you can see the slashing penalty increases linearly as a greater
% of misbehaving validators are detected.
Slashing begins when 10% of validators are detected to be misbehaving and
imposes a penalty of 0.021%. When the % of misbehaving validators reaches
44%, slashing linearly increases to 7%.
In the Creditcoin network, there are 50 validators, each responsible for
securing the network, producing new blocks, and validating transactions.
Each validator has bonded (or staked) a certain amount of CTC tokens as
collateral.
For simplicity, we will assume that all 50 validators have staked 100 CTC
each.
When the network detects that 10% of validators (or 5 validators) are
misbehaving, slashing penalties will be imposed for those respective
validators of 0.021 CTC (0.021% slashing penalty * 100 CTC tokens).
When the network detects that 44% of validators (or 22 validators) are
misbehaving, slashing penalties will be imposed for those respective
validators of 7 CTC (7% slashing penalty * 100 CTC tokens).
The slashing mechanism ensures validators are motivated to stay online and
perform their duties efficiently by enforcing a tangible penalty.
It is also important to note that when a validator is oversubscribed during an
CTC T okenomics, Rewards, and Penalties
24
era, only the top 512 nominators receive staking rewards. However, when it
comes to slashing, all active nominators of a validator found committing a
slashable offense will be penalized.
2. Block Production
If a validator produces more than a single block in their assigned slot, they
may be Slashed between 0% and 100%.
3. Block Finalization
If a validator finalizes two or more blocks in the slot on distinct forks, it can
be reported and may be penalized using the same formula.
Slashing Calculations
CTC T okenomics, Rewards, and Penalties
Offence Formula Range
Inactivity min((3 * (offending_validators - (total_validators / 10 + 1))) / total_validators, 1) * 0.07 0% (chill) - 7%
Block
production
offence
(3 * (offender_count) / total_validator_count) ^ 2 0% - 100%
Block
finalization
offence
(3 * (offender_count) / total_validator_count) ^ 2 0% - 100%
25
CTC T okenomics, Rewards, and Penalties
7. CTC Distribution
The CTC mainnet ecosystem reserve does not include vesting tokens. All
mainnet tokens were distributed as mining rewards pre-Creditcoin 2.0+. With the
upgrade to NPoS, CTC (mainnet) tokens are distributed as staking rewards.
The initial distribution of CTC (ERC-20) aka G-CRE tokens are as follows:
• Investors (Genesis allocation; 6-month to 3-year linear vesting) – 200M CTC,
For funding network development, business development, partnerships, and
support. Any unsold tokens were remitted to the Creditcoin Foundation with a
vesting period of 6 years.
• Gluwa, Inc. (Genesis allocation; 6-year linear vesting) – 300M CTC, For
R&D, deployment, business development, marketing, distribution, and
administration costs.
• Creditcoin Foundation (Genesis allocation; 6-year linear vesting) – 100M
CTC, For long-term network governance, partner support, academic grants,
public works, and community building.
26
As James Rickards, the author of Currency Wars, said, “Currency is not only used
to buy goods and services... people should be able to lend and borrow to make it a
currency.” Although cryptocurrency already has a significant portion of the market
(more than $70 billion), it is true that the capital market infrastructure it provides is
limited to payment. Cryptocurrency will eventually require a credit network.
People say, “If all you have is a hammer, everything looks like a nail.” Just like with
any other technology development project, before we get started with a blockchain
project, we have to ask ourselves whether it is the best technology for solving the
problem.
The problem we are trying to solve is the vicious cycle that unbanked people
experience. We set the unbanked as our target group because they are the stratum
that has reason to use cryptocurrency—even with some of the inconveniences
associated with the premature ecosystem.
Many people can’t get signature loans from the traditional banking system. As a
result, they borrow money using other methods, and banks cannot record these
transactions. So, credit records do not accumulate in the banks, which means that
people cannot build credit—there is no reason for banks to believe the individual files
of lenders. Eventually, the vicious cycle of receiving credit loans again in adverse
conditions repeats. To summarize, the credit history of the unbanked does not get
objectively accumulated.
The solution is to build a system that stores credit records objectively. As stated
earlier, a blockchain is a technology specialized in keeping data objectively. The
blockchain is the perfect technology to solve this problem.
Once you decide to use the blockchain, you need to make a choice: Are we using a
smart contract, or are we building a new blockchain?
A smart contract is enough to store information on the blockchain. We can save
significant time if we use a blockchain with a well-established ecosystem as
a platform such as Bitcoin or Ethereum. Designing and building a proprietary
blockchain is very time-consuming.
However, existing blockchain platforms are slow and expensive. A blockchain is a
decentralized system that runs the same computation on many nodes across the
world in exchange for security and availability in a byzantine environment. Therefore,
the best performing blockchain is always less efficient compared to a centralized
server. Also, multi-purpose systems like Ethereum are less efficient than single-
purpose systems like Bitcoin. Platform blockchains will stay relatively slow and
expensive for many years to come.
V. Epilogue - Designing Creditcoin
27
We have experienced the limitations of the existing blockchain platform.
We first built the Creditcoin network with a ERC-20 standard smart contract of
Ethereum to make a proof-of-concept of Creditcoin. Something had happened
by the time we finished building the smart contract. At that time, Cryptokitty on
Ethereum was becoming popular, and transactions began to accumulate without
being processed, which caused the cost of using Ethereum to increase considerably,
making it economically impossible for the unbanked to use the smart contract. Our
partner, Aella, gets over 1,000 loan requests per hour. We concluded that we could
not operate Creditcoin as an Ethereum smart contract.
We finally decided to develop a proprietary blockchain. After reviewing the
requirements, we found that Parity Substrate was the best for our needs.
We decided to develop a blockchain with a single purpose. Creditcoin is only
intended for recording credit transactions. In the end, users who want to transact
Cryptokitty and others who wish to trade file storage space don’t have any reason
to compete with each other for limited bandwidth. Blockchains with a single purpose
will not interfere with each other’s traffic since they are in different markets. User
behaviors will determine the cost and the traffic of each blockchain.
During the design process, we were confronted with many questions. We started
by defining what a loan is. A loan is essentially a conditional transaction. There
are usually dozens of conditions you can set for a loan, and that means there are
thousands of possible types of loans. As Creditcoin is not a smart contract platform,
it should not support every kind of loan. Then, what is the most basic loan? It is
borrowing money and paying it back with more money. In short, it is a contract
saying, “I will repay $110 if you lend me $100.” You will pay interest even if you pay
back earlier than the expiry date. More specifically, it is a non-collateralized bullet
loan with a prepayment penalty.
Next, we’ve defined the types of transactions in the order of creating 프로젝트로 돌아가기