bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 5쪽 중 4쪽
nding factors are random except , which is simply set to
x′m =∑
t
yt−
m−1∑
j=1
x′j
2.5.19 Signature
As we mentioned, in transactions of type RCTTypeSimple each input is signed indi-
vidually. We use the same MLSAG signature scheme as for RCTTypeFull transactions,
except with different signing keys.
Assume that Alice is signing input j. This input spends a previous output with key
˜Koπ,j that had commitment Caj . Let C′aj be a new commitment for the same amount
but with a different blinding factor. Similar to the previous scheme, the sender selects
v unrelated outputs and their respective commitments from the blockchain to mix with
the real, jth, input
Ko1,j,...,K oπ−1,j,K oπ+1,j,...,K ov+1,j
C1,j,...,C π−1,j,Cπ+1,j,...,C v+1,j
She can sign input j using the following ring:
Rj =
{
Ko1,j,
(∑
j
Ca1,j−C′aπ,j
)}
...,
{
Koπ,j,
(∑
j
Caπ,j−C′aπ,j
)}
...,
{
Kov+1,j,
(∑
j
Cv+1,j−C′aπ,j
)}
Alice will know the private keys koπ,j for Koπ,j, and zj for the commitment to zero (
Caπ,j−C′aπ,j). Recalling Section 2.5.13, there is no key image for the commitments to zero
zjG, and consequently no corresponding key image component in each input’s signature’s
construction.
Each input in an RCTTypeSimple transaction is signed individually, applying the
scheme described in Section 2.5.13, but using rings like Rj as defined above. The
advantage of signing inputs individually is that the set of real inputs and commitments
to zero need not be placed at the same index π, as they are in the aggregated case.
This means even if one input‘s origin became identifiable; the other inputs’ origins would
not. The message m signed by each input is essentially the same as for RCTTypeFull
transactions, except it includes pseudo output commitments for the inputs. Only one
message is produced, and each input MLSAG signs it.
28
2.5.20 Space and verification requirements
MLSAG signature (inputs) Each ring contains (v + 1).2 keys. Using the point com-
pression technique, an input signature σ will require (2(v + 1) + 1).32 bytes. On top
of this is, the key image ˜Koπ,j and the pseudo output C′aπ,j commitment leave a total of
(2(v + 1) + 3).32 bytes per input. A transaction with 20 inputs using rings with 32 total
members will need ((32.2 + 3).32)20 = 42880 bytes.
For the sake of comparison, if we were to apply the RCTTypeFull scheme to the same
transaction, then the MLSAG signature and key images would require (32 .21 + 1).32 +
20.32 = 22176 bytes.
Including the computation of ( Ci,j–C′π,j) and (∑jCaj ?= ∑tCbt +fH ), and verifying
key images are in G’s subgroup with l ˜K, we verify all of a RCTTypeSimple transaction’s
MLSAGs with:
PA Point addition for some points A,B :A +B[m +p + 1]
PS Point subtraction for some points A,B :A−B[m∗ (v + 1)]
VBSM Variable-base scalar multiplications for some integer a, and point P :aP [m]
KBSM Known-base scalar multiplications for some integer a :aG
DVBA Double-variable-base addition for some integers a,b , and point B :aG +bB[m∗
2∗ (v + 1)]
VBA Variable-base additions for some integersa,b , and pointsA,B :aA+bB[m∗(v+1)].
Range proofs (outputs)
The size of range proofs remains the same for RCTTypeSimple transactions. As we
calculated for RCTTypeFulltransactions, each output will require 6176 bytes of storage.
As before, each range proof will require this to verify (Section 2.4.4):
VRSF Verify range proof special function [p∗ 64]
DVBA Double-variable-base addition for some integers a,b , and point B :aG +bB[p∗
2∗ 64].
3 Beldex Blockchain
3.1 Masternodes
Beldex improvises on the CryptoNote protocol to provide greater confidential computa-
tion; however, a group of incentivized masternodes determine most of the functionality
and scalability in Beldex. These masternodes are full nodes that store the entire copy of
the Beldex blockchain. To set up a Beldex masternode, a node operator must lock-in a
minimum collateral and possess the required minimum bandwidth and storage capabili-
ties. The collateral ensures that the masternode operators refrain from acting dishonestly,
as they have a significant stake in the network. As compensation for their services, mas-
ternode operators receive a portion of the block reward. A masternode is continually
reviewed and if it is found to act dishonestly or doesn’t provide the required bandwidth
at any time, then it is penalized and moved to the end of the reward queue. A maximum
of three warnings is given to a masternode operator before they are removed from the
network.
The network thus formed is resistant to Sybil attacks, in which a single or a group of
29
bad actors work in coalition to undermine the network. The initial setup collateral and the
periodical review of masternodes ensure that such attacks are prevented. The maximum
amount of stake a single validator can have is limited by supply and demand, preventing
one validator to have a disproportionately large stake so as to sabotage the second-layer
ecosystem services. Resistance to Sybil attacks can also be acquired through Cryptoe-
conomics [QC19]. When a bad actor begins to accumulate Beldex (BDX) in order to
obtain a majority stake within the network, the supply in circulation decreases and inturn
drives the price up. Acquiring additional Beldex becomes increasingly expensive, thus
making the attack economically unfeasible. This disincentivizes the attacker. To ensure
that masternode validators obtain sustainable returns for their services, the circulating
supply is actively reduced and the emission curves and minimum collateral requirements
are designed such that enough circulating supply is locked within the masternodes.
3.2 Block Reward
Block rewards in the Beldex network are currently distributed through proof-of-Stake
consensus. A node or a masternode creates a new block every 30 seconds by collecting
the transactions, validating them, including them within the block, and adding the block
to the end of the network. To perform this action, they maintain a certain bandwidth
and propose a new block periodically. In return, they collect block rewards as new BDX
coins are emitted. The Beldex block reward is set to a constant value of 6 .5 BDX.
Node Reward: In addition to the transaction fees, 10% of the block reward is awarded
to the node that constructs the block.
Master Node Reward : 90% of total Beldex rewards go to a Masternode, or two
Masternodes if both the masternodes construct the block at the same time. Once the
Masternode receives a reward, it assumes the last position in the reward queue. Thus,
nodes that recently received rewards are moved to the end of the reward queue while nodes
that have been waiting for a longer period are moved to the start of the queue. The very
first time a Masternode validator is indexed on the network‘s distributed decentralized
directory, it assumes the last position in the reward queue. The masternodes that are
found to provide optimum services to the network continually move up the queue, if they
are not otherwise penalized.
3.3 Authenticated Collateralization
A masternode operator may stake this amount entirely by themselves or stake part of the
amount and let other users stake the remaining. In this case, they share the rewards based
on their stake within the masternode. To be added to the Beldex distributed directory,
each Masternode must prove to the network that they hold the necessary stake, which is
10000 BDX. The innate confidentiality features of Beldex prevent the masternodes from
doing so as public addresses do not reveal the amount of transaction. They also cannot
use viewkeys to see transactions going out of the network.
To solve this dilemma of Masternodes, Beldex uses a novel method of time-locking
the collateral. The initial collateral by a masternode is locked for a specific block-height
of 86, 400 blocks. Thus, from the time of registration until 86 , 400 blocks are created,
the masternodes will be unable to spend this collateral. Beldex leverages this method to
30
ensure that a particular masternode holds the required collateral amount.
In the additional field of transaction, the Masternode operator provides the Beldex
address to receive rewards. This address is the public key of the Masternode operator.
The transactions for the purpose of registration are open transactions, thus they may not
be included in a ring transaction as they do not serve to provide anonymity. The existing
Masternodes in the network must verify that the first time Masternode registrants possess
the required collateral before they are added to the distributed decentralized directory.
3.4 Flash
Flash instant transactions are a second layer atop the Beldex blockchain that allows for
confirmation of transactions before they are included in a block. Blockchain transactions
typically take the time required for the transaction to be included in a block and confirmed
by the network. A Beldex transaction requires 10 confirmations and the block creation
time is 30 seconds. Thus, it may take anywhere between 5− 10 minutes for a transaction
to be confirmed. But with flash, it only takes a few seconds.
The Beldex second layer architecture (Flash) is similar to Bitcoin‘s lightning network
in that a shortest possible route is selected between the Flash channels [PD16]. A channel
path reducing algorithm is used to send the outputs to the receiver, where channels from
users who have made transactions with each other before become relays. If B has sent or
received inputs from A and C, then B can act as a relay in transactions between A and
C.
Flash instant transactions are feasible through the use of Masternodes that confirm
a transaction’s authenticity by securing the key images associated with the UTXOs. In
a ring signature transaction, the UTXOs are linked to a distinctive key image. Select
Masternodes store this key image and hold onto it until the transaction is added to a
block on the Beldex network. If the said key image is produced more than once, then that
signals a double spending attempt. The corresponding duplicate transaction is rejected.
Similar to Ethereum, Flash will enable a mechanism for competing transactions to pay
a higher fee to be completed first. But this is several times faster and will be in the order
of a few seconds since it takes place outside the blockchain. Confirmation time on the
blockchain is also significantly reduced due to the network transition to a Proof-of-Stake
(PoS) consensus.
3.5 Coin Burning Mechanism
The Beldex coin burning mechanism is a way to curb inflation and deliver sustainable
price discovery. To achieve this, the network fee obtained through Flash transactions will
be burned. The Flash second layer serves to provide instant transactions and thus will
have a higher fee. This fee is burned as soon as the transaction is completed.
3.6 Proof-of-Stake (PoS) in Beldex Chain
POS is an alternative to POW that is designed to be economical and energy-efficient. At
present, most cryptocurrencies run on a POW algorithm that consumes a lot of energy
through mining hardware. Newer and powerful hardware is developed to plow through
31
the hashrate. This hardware is often not affordable to everyone, making them less de-
centralized and they consume several KW of power every day. Bitcoin‘s annual energy
consumption index is an estimated 169.59 TWh, according to Digiconomist 3.
A full POS Beldex network will enable users to stake BDX on nodes. Those with
a stake can participate in validating blocks on the network. The higher the stake, the
higher the chances for the node to be selected to validate a block, and the lower is the
difficulty. POS on Beldex is based on delimited competition of nodes.
Anyone is free to contribute to the Beldex network, given the required collateral stak-
ing amount is locked in the node. Dishonest nodes are disincentivized and their collateral
is devalued. This prevents the nodes from acting against the network whereas honest
nodes are rewarded and appraised. Beldex also provides pool staking via masternodes
where the hardware is shared between a few individuals who share the stake amount
(10, 000 BDX).
3.7 How Does Proof of Stake Work?
Proof of Stake works on the mechanism that for a node to participate in the network it
must possess the minimum required stake. The minimum required stake to run a POS
node is 10000 BDX. Bucephalus is Beldex‘s Proof of Stake implementation. POS makes
the Beldex network fast, sustainable, secure, and scalable.
In POS consensus, every 30 seconds, a node is selected at random to produce a block
which is then sent to a quorum vote consisting of 11 other participating validator nodes.
The validators in a quorum verify the authenticity of the block and if any 7 validator
nodes of the 11 attest to the block’s. authenticity, it is broadcast to the network as a
valid block. For the creation of the next block, a new quorum or consensus group is
formed and the process repeats.
3.8 Power Consumption In A POS Blockchain
One area of concern for blockchains is sustainability. 50 or 100 years into the future, they
need to be able to validate transactions the same way they do now without consuming
50X more power. The Bitcoin blockchain consumes over 200 TWh per year, that‘s as
much power consumed by entire nation-states.
POS solves the blockchain energy problem by decoupling the hash power from the
computing power of the nodes. The minimum stake provides one the hash power required
to participate in the network. By transferring authority from computing power to one‘s
stake within the network, POS essentially reduces the entry barrier to participation.
POS networks could therefore have a greater degree of decentralization, scalability, and
flexibility.
3.9 Security in Proof of Stake Consensus Model
In Proof of Work, an attacker would have to gain 51% of the hash power within the
network. To do this, they set up a majority of the nodes, gain computational power
which translates to hash power. For this reason, blockchain networks such as Bitcoin
3https://digiconomist.net/bitcoin-energy-consumption/
32
increase the cost of hardware required to attack a network. They use ASICs, FPGAs,
and GPUs which are cost-intensive. However, this leads to additional complications
of centralization. If the network is minable only with a specific kind of ASIC, then the
manufacturers of this equipment can play a role in who gets to participate in the network.
On the other hand, Proof of Stake provides node operators with the authority to
validate a block based on their stake within the network. An attacker, in this case, would
have to possess more than 50% of the staked $ BDX to take over the network, which is
cost-intensive and economically not feasible. The threat of a 51% attack can be negated
by sufficient decentralization of the network. If more than 50% of the network‘s tokens
are locked, then it becomes virtually impossible to take over the network. Moreover, any
malicious node risks slashing, in which they stand to lose their collateral and rewards.
Thus, node operators are disincentivized from acting against the network.
3.10 Checkpoints
Checkpoint is a mechanism employed as an additional layer of security within the network.
Checkpoint works by taking a snapshot of the blockchain history every 4 blocks. Thus,
even if the Beldex network were to be compromised by a group of bad actors banding
together, they will not be able to alter more than 4 blocks, since everything prior to it is
recorded.
3.11 Bucephalus Hardfork
The Beldex network transitioned to Proof of Stake on Dec 10 , 2021, via the Bucephalus
Hardfork. The proof of stake consensus introduced several changes to the network, a
few of them being reduced block production time. The previous 2 minute block time
is reduced four times and now sits at an average of 30 seconds. The transaction size is
significantly reduced while block rewards have increased 5 × from 2 BDX to 10 BDX.
62.5% of the new block rewards are allocated to masternode block producers while 37.5%
is allocated to governance. Flash instant transactions were launched with a network
confirmation of 2 nodes.
3.12 Implementation of Bucephalus PoS Consensus
The Bucephalus consensus works on a number of quorum states that run simultaneously
and have different functionalities.
For example, the PoS quorum determines the block producer and the 11 validator
nodes. The Flash quorum is based on two separate consensus groups that verify the
transaction and then include them in a block. The Masternode quorum checks the nodes’
uptime proof before being selected to participate in block validation while the checkpoint
quorum takes a snapshot of the chain history every 4 blocks.
3.12.1 PoS Quorum
A POS quorum is made up of 12 nodes in which 1 node produces the block and the
remaining 11 nodes validate it. The producer selects valid transactions from the mempool
and creates the nominee block. The producer then signs the nominee block and broadcasts
33
it to the validator nodes in the consensus group. Each validator node broadcasts it to 3
other nodes in the network to ensure that all the nodes receive the block.
Each validator now creates a 128 bit integer and sends it to other validators. Validators
reveal the pre-image of the hash, so that each validator now has a subgroup values.
Validator combine the pre-images to produce a new random value. The new random
value is added to the nominee block and then signed. The signature is then sent to all
other validators.
The validators then check each other‘s signatures, ensuring they are all signing both
the same nominee block and the same combined random integer. Once signatures have
been validated, any validator in the quorum can submit the block to the network. For
the block to be confirmed, 7/11 validator nodes should approve it.
Quorum state is checked every 1 minute. This could be set to less than 1 minute,
however, a handshake between 12 nodes in a quorum requires at least 30 seconds. Thus,
to ensure a quorum is formed, the maximum time is set to 1 minute, while in reality, it
could be lesser. On the other hand, the blocktime is adjusted such that the average block
creation time is 30 seconds.
A masternode that produces the block is rewarded 6 .25 BDX and assumes the last
position in the reward queue. The successive block is produced once the next set of 12
quorum nodes is selected from the 50 nodes that were set aside in Masternode Quorum.
3.12.2 Flash Quorum
Flash transactions are instant and have a slightly higher fee than regular transactions
(which is still orders of magnitude lesser than most other blockchain networks). Flash
transactions differ from other transactions in the following way. Regular $ BDX trans-
actions are sent to the mempool where they wait to be included in a block. However,
flash transactions are sent to two different quorums that instantly verifies them. The
sender and receiver see that the locked balances have been updated on their wallets.
Transactions are then sent to the mempool to be included in the block.
3.12.3 Masternode Quorum
The masternode quorum checks if any given masternode is active and eligible for the next
round of PoS quorum. 10 validator nodes in POS quorum check other masternodes for
proof of uptime. 50 nodes are set aside for this process. The nodes that do not submit
uptime proof are decommissioned in order to prevent them from obstructing the network.
3.12.4 Checkpoint Quorum
As mentioned in section 3.10, checkpoints are an additional layer of security. Checkpoint
quorums take a snapshot of the blockchain and record the hash of every 4 th block. Thus,
an attacker can virtually only be able to change 4 blocks. Beyond that, the network will
self-correct using the snapshot history from the Checkpoints.
34
3.13 Byzantine Fault Tolerance
When a valid block is not produced for more than 60 seconds, it results in a pause in
block production. When this happens, the next block producer can produce the next
nominee block and send it to the validators b프로젝트로 돌아가기