Canton 백서

Canton

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 5쪽 중 4쪽

icit where, how, and by whom intervention can happen during the execution, without requiring a priori knowledge of the exact type of intervention and without relaxing any security guarantees. Signatories can jointly agree to archive, upgrade, or create new contract instances as long as there is unanimous consent. If any of the signatory parties are consortiums, their consent is governed by the underlying consensus protocol of that party/consortium and may, for example, require a ⅔ supermajority instead of unanimous consent. Observers are parties entitled to be notified of, and can independently validate, any such changes but whose authorization is not required. All actions on contracts - their creation, archival, and calls to choices - are events in transaction trees and form a complete and non-repudiable audit log of all changes. This ability to change contracts post hoc, with the appropriate authorizations, enables application providers to upgrade data, processes, and operating procedures, due to unforeseen events. For example, to deal with regulatory or judicial decisions which require retroactive changes to business transactions. Daml organizes templates in modules and packages. Packages can depend on other packages, including across applications which may be deployed to multiple networks. This ability to depend on packages across applications on different Canton subnets enables an open architecture, where parties can combine workflows with other parties like building blocks. Ledger Model Daml enables parties to exchange value (in the form of smart contracts) in a way that is unique among currently available technologies. A smart contract update is nothing more than an authorized and validated update to entries on a ledger. The fundamental challenge when trying to accomplish this update without a trusted, central intermediary is ensuring that the ledger entries reflecting the smart contracts are accurate and can be proven to a third party. A common approach to address this challenge is to decentralize the ledger among the parties on the network by requiring every party to hold and update a copy of the ledger for the entire network. A consensus mechanism is used to ensure accurate replication of the ledger to all parties. But this leads to networks devoid of privacy with hard caps on scalability. Daml’s ledger data model takes a different approach to address these privacy and scalability challenges. In Daml’s ledger model, the ledger is not fully replicated among the parties; it is segmented according to privacy rules, and each party stores only its view, or shard, of the ledger. As a result, there is no ledger view common to all parties in the network. Instead, there is a ledger for each party that includes only the contracts of that party. As a result, instead of one ledger that all of the parties in the network must replicate, each party to a transaction updates its ledger to reflect that transaction. However, this creates a problem: if the record of smart contracts is spread across many ledgers, each visible to a certain party, then it would be difficult for any party on the network to know whether their smart contract is accurate. Daml solves this problem by ensuring that each party’s view is a subset of a single global, virtual ledger. In other words, conceptually, all parties of Daml ledgers perceive a single ledger while each party has read-access only to a subset of this ledger’s state. This global ledger is virtual in the sense that it does not exist in any one data store. Since, conceptually, all users are reading from the same ledger, all users have a consistent view of any application state they share, for example, ownership of assets. The Canton protocol, described below, is the mechanism that ensures that the views of all properly functioning nodes in the network are consistent subsets of a single valid, global, virtual ledger. All of this is done while ensuring that no party sees or stores information to which it is not a party. As a result, parties can transfer digital 28 of 35 assets with the confidence that the party transferring the digital asset actually owns that asset while also being certain that no other party on the network will know of the transfer unless such party is explicitly permitted to do so. Daml’s fully decentralized and party-centric ledger model enables decentralization in one additional way – rather than being structured as a single network, Daml enables users to create their own subnets. A party can connect to a single or multiple subnets. And if a party is connected to multiple subnets, the Canton protocol can synchronize digital asset transactions across them. Thus, the Daml Ledger Model enables a network of networks. This design ultimately enables privacy, performance, and scalability in a decentralized environment. Canton Canton is an open-source privacy-enabled blockchain protocol. Canton implements Daml’s ledger model as described above. Canton currently supports the Daml language, though it can support any language with a similar hierarchical sub-transaction privacy model. Network topology Nodes in the Canton Network are called participant nodes. A user or company, represented in Daml as a Party, deploys one or more participant nodes; these participant nodes act on behalf of that Party. To transport data between nodes and determine the order of messages, each participant node connects to one or more private or public Canton Service Providers (CSP) which operate a Canton component called a synchronization domain (“sync domain”). Thus, connecting to sync domains allows a Party to transact with all other parties whose participant nodes are connected to a common sync domain. Anyone can become a CSP and deploy sync domains at will; reasons to deploy new sync domains may include increasing throughput, reducing latency, requiring data transport only through certain jurisdictions or certain blockchain networks, or other operational concerns. To promote privacy and net neutrality, data in transit over sync domains is encrypted, preventing CSPs from accessing message contents. Sync domains can be thought of as highly available, fault-tolerant messaging queues between participant nodes that sequence, timestamp, and serve encrypted messages to participant nodes. CSPs can be single entities or “virtual CSPs” in which a consortium of parties runs a distributed sync domain. At launch, the Canton Network will have at least one open virtual CSP (vCSP) that is run by a consortium and accepts connection requests from any participant node. Application providers can choose to use this open vCSP or any other CSP. As such, Canton creates a mesh network of composable Daml applications in which each application may make different tradeoffs between trust, access control, and operational complexity. While single nodes have processing and storage limitations, the Canton Network has no intrinsic scaling bottlenecks: a participant node processes only its data and workflows, which different sync domains synchronize in parallel. Parties connect to any sync domains they choose as long as the CSP operating the sync domain accepts them. Open sync domains accept any well-formed requests to join. Canton enables a public network, in that anyone can deploy a Canton sync domain, thus becoming a CSP, for any reason. Sync domains are not silos: parties who share one or more common sync domains can compose higher-order workflows, including atomic transactions across multiple applications, processed via a sync domain selected by the applications. Contract signatories and observers control which sync domain will synchronize their contracts and can choose to reassign which sync domain sequences a given contract, avoiding sync domain lock-in or censorship The Canton Network has no single centralized governance or policies for access and usage; each constituent node or subnet sets its own policies. Data pruning 29 of 35 Canton provides history-pruning and redaction capabilities for its log. Participant and sync domain operators can configure their nodes to store or prune historical cryptographic data, allowing them to trade-off between auditability and the ability to delete archived contracts to comply with right-to-forget regulations such as the European Union’s General Data Protection Regulation (GDPR). Historical data can be moved to offline storage to retain full and immutable audit logs while reducing data storage costs and increasing sustainability of production environments. Canton nodes continuously exchange cryptographic commitment to their shared state, so parties remain secure against attempted repudiation by malicious or malfunctioning counterparties even when configured to prune historical data. Thus, individual node operators may trade off maintaining full and immutable historic auditability versus other operational and regulatory compliance requirements. Application composability In Canton, two or more applications can compose and rely on atomic transactions even if they are synchronized via different sync domains. Thus, for example, two central banks may each synchronize local currency transactions using country-local CSPs, while owners of these currencies can still atomically swap them in a cross- domain transaction. Global composability could be achieved, similar to other blockchains, by having a single global Canton synchronization sync domain that allows atomic composition of arbitrary workflows. However, having multiple sync domains is beneficial for multiple reasons. For example, companies and individuals may want more control over their network resources. A single global sync domain would impose a high communication latency for some or all participants. Multiple sync domains can help increase throughput: requests from different sync domains can be processed completely in parallel. There might also be operational concerns; for example, for critical workflows, a new sync domain with restricted access can be used. Finally, different sync domain operators may charge differently for their services. In the example above, transactions in each local currency would be processed completely within the jurisdiction of the central bank’s country. However, having multiple sync domains opens up a new challenge of how to compose workflows across sync domains. In Daml, composing workflows specifically means that contracts synchronized via different sync domains can be used within a single transaction. Without such an ability, we would not truly solve the composability problem: this would create multiple siloed networks with a single sync domain each, instead of multiple subnets of a single interoperable network. Canton guarantees the atomicity of cross-subnet transactions. Since different sync domains have no common notion of ordering between the different sub-transactions that each sync domain processes, reconciling atomicity with resilience can become impossible. To overcome this, Canton allows cross-subnet transactions only whenever there exists at least one sync domain to which all transaction participants are connected. Contract changes required by the cross-subnet transaction are synchronized via this common sync domain. Furthermore, Canton makes it possible to change which sync domain provides the synchronization service for a contract. This synchronization reassignment marks a different sync domain as the new authority for ordering actions on the given contract. H.3 Technology Used The Canton Network is the network of networks spanned by all synchronization domains and their connected participant nodes. It is a global system of interconnected participant nodes, synchronization domain nodes and the private, semi-private, and public smart-contract applications deployed to these nodes. Canton Network users act in three main roles: 1. Application Providers - application providers build and maintain smart-contract applications. They operate one or multiple participant nodes, application 30 of 35 backend infrastructure, and frontend web interfaces for those applications. Application providers optionally act as CSPs for their applications or they can use the service of other CSPs. 2. Application Users - most users interact with applications via application programmable interfaces (APIs) and web user interfaces (UIs). Users must have a participant node and can choose to operate their own participant nodes or use hosted nodes managed by others. 3. Canton Service Providers (CSPs) - infrastructure providers, who are typically also application providers, connect participant nodes by operating a Canton sync domain. The Canton Network consists of multiple subnets. A Canton subnet is any one or more participant nodes that can transact with other participant nodes via one or more synchronization domain nodes. The first decentralized synchronization domain is called the Global Synchronizer. Following its “TestNet” launch in June 2023, and extensive testing with market participants, the Global Synchronizer’s "MainNet" subsequently went live in June 2024. The Global Synchronizer is decentrally operated by independent entities called Super Validators. The Global Synchronizer will be the first instance of a decentralized synchronization domain for the Canton Network but is not intended to be the only one. Third parties may set up their own decentralized Canton synchronization domains using the code available through Splice, a Hyperledger Lab. All actions taken by Super Validators operating the Global Synchronizer, and Canton Coin application configurations and transactions, are subject to a ⅔ majority action of all Super Validators. This includes all parameters described in this paper, including the set of active Super Validators, the minting curve and rights split, fees, and protocol improvements. Governance of the Global Synchronizer will be facilitated by the Canton Foundation, an independent entity managed by the Linux Foundation. The Canton Foundation will facilitate transparent governance and organizational neutrality in the operation of the Global Synchronizer. The goal of the Super Validators is to build an ecosystem to foster and accelerate the creation of a “network of networks” of applications in regulated finance and other areas. A “backbone” infrastructure like the Global Synchronizer is an important part of doing so, but it is far from sufficient for starting an ecosystem. Networks acquire and deliver value through “network effects”, where existing users and applications provide value to new users and applications, and vice versa. To incentivize the first users and applications to do something in the absence of that preexisting value, special mechanisms are needed to provide first-mover advantages. This includes the Super Validators themselves, which are providing the first services within this ecosystem, including the Global Synchronizer. Furthermore, ecosystems like the Canton Network benefit significantly from having both a means of transferring value, and publicly visible metrics for activity and use. To meet these needs, the Super Validators have included a payment and incentivization application in the launch of the Global Synchronizer’s MainNet. The application is based on a token called Canton Coin, and each Super Validator will independently run an instance of the Canton Coin application. H.4 Consensus Mechanism Proof-of-Stakeholder: Consensus with privacy Canton’s primary goal is to provide consistent data across parties. In other words, Canton aims to achieve consensus amongst parties on the active contracts on which they are joint stakeholders, and on the validity of the transactions that led to this state. The standard approach to consensus is state machine replication, where all participants replicate the same global state. However, replicating the entire global 31 of 35 state is not acceptable for privacy and scalability reasons. Instead, Canton’s proof-of- stakeholder consensus protocol is split into two layers of consensus. To achieve consistency along with privacy, the first consensus layer is a two-phase commit protocol that replicates each contract to the contract’s stakeholders while concurrently enabling each stakeholder to validate the transaction. Conceptually, this can be thought of as having a replicated state machine for every subset of parties. For this first layer to commit transactions consistently, nodes must agree on the order in which conflicting transaction requests are applied to the ledger. Therefore, the second consensus layer is a sequencing protocol that receives encrypted transactions and determines a timestamp for each transaction. This sequencing layer can be run on a central CSP or, when connected to a virtual CSP’s distributed sync domain, this sequencing protocol runs as a replicated state machine secured by a Byzantine Fault Tolerant (BFT) consensus algorithm. Thus, the virtual CSP determines a total order on transaction requests within a sync domain, and transaction processing is deterministic. H.5 Incentive Mechanisms and Applicable Fees Burn-Mint Equilibrium Canton Coin employs a burn-mint equilibrium mechanism, aiming to stabilize the conversion rate of Canton Coin around the intrinsic value it provides to network users. Token price is a function of supply and demand. As such, if supply is fixed and demand is volatile, the conversion rate becomes volatile. The burn-mint equilibrium mechanism is expected to allow total supply to adjust according to demand, thus reducing conversion rate volatility. Furthermore, under this mechanism, the conversion rate is expected to align, over the long run, with the utility value of the network. The burn-mint mechanism works as follows: 1. Canton Network users use Canton Coin to pay fees denominated in United States Dollars (USD) as they use applications and infrastructure services. 2. Instead of paying fees directly to network infrastructure providers, all fees for using Canton Coin, and for creating a traffic balance on the Global Synchronizer, are burned by the user who submits the Canton Coin transaction. Thus, Canton Coin are retired from circulation, decreasing the token supply by the amount of real utility provided to network users (in USD). The users specify the application or infrastructure service for which they’re burning fees. 3. In return for operating applications and network infrastructure, providers can mint new Canton Coin. Thus, the usage fee from user to provider is indirect via the burn-and-mint mechanism. Below, both fees and minting are described in more detail, as is the motivation for using this burn-and-mint mechanism. 4. As defined by the minting curve, the Canton Coin application creates a predetermined amount of Canton Coin that can be minted over time. At steady- state, the Canton Coin application allows the minting of 2.5 billion Canton Coin per year. Thus, the cumulative number of Canton Coin minted is always increasing. This is offset by the number of Canton Coin burned. Accordingly, network usage must burn 2.5 billion Canton Coin per year to keep the number of Canton Coin in circulation stable. Fee Structure: Canton Coin users pay two types of fees to use the Global Synchronizer and its Canton Coin application, detailed below. These fees are not paid to any other party directly; instead, users burn Canton Coin to cover these fees; this supports the Global Synchronizer’s burn-mint equilibrium. While there are multiple fees described below, the design principle is simple: the fee structure looks to (1) increase the amount of coins burned as utility increases and vice-versa, (2) have similar total costs to the user as well-establ
프로젝트로 돌아가기