<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Malcolm on Medium]]></title>
        <description><![CDATA[Stories by Malcolm on Medium]]></description>
        <link>https://medium.com/@malcolmtan_52637?source=rss-b3777ccf0c23------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HO_lY2aXBXywR0aE-y0lSA@2x.jpeg</url>
            <title>Stories by Malcolm on Medium</title>
            <link>https://medium.com/@malcolmtan_52637?source=rss-b3777ccf0c23------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:13:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malcolmtan_52637/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Function X f(x)Core v5.0.x]]></title>
            <link>https://medium.com/pundiai/function-x-f-x-core-v5-0-x-99ad4bef5bc7?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/99ad4bef5bc7</guid>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[functionxtech]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Wed, 30 Aug 2023 06:58:36 GMT</pubDate>
            <atom:updated>2023-08-30T06:58:36.729Z</atom:updated>
            <content:encoded><![CDATA[<h4>An overview of our latest v5.0.x upgrade</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhKuWlIE8b3FAOpdeihhVA.png" /></figure><p>Upgrade v5.0.x has arrived on f(x)Core and in this article, we are going to explore the two main features that the upgrade will bring to the network: replacing the consensus public key and transferring validator permissions.</p><h3>Validator Keys</h3><p>To better understand the new features from upgrade v5.0.x, it is essential to know the keys that a validator handles when it participates in the network’s consensus. In general, a validator on a Tendermint consensus based blockchain, such as f(x)Core and Cosmos, works with three different keys:</p><h4>The consensus key</h4><p>The consensus key is used to sign blocks on an ongoing basis, and it is of type <em>ed25519. </em>This key is created as long as a node is initialized.</p><h4>The validator operator application key</h4><p>The validator operator application key is used to create transactions that create or update validator parameters. It is generally of type <em>secp256k1</em> or whichever type the individual network supports.</p><h4>The delegator application key</h4><p>The delegator application key is used to handle the stake that gives the validator more voting power. Depending on the chain, this key could be the same as the validator operator application key if you are a node operator.</p><p>These keys are usually bech-encoded and will have specific prefixed values appended to them depending on the chain. For example, a validator operator application key on f(x)Core will be prefixed with “<em>fxvaloper</em>”. On f(x)Core, both validator operator and delegator operator keys are of the same type, but with a different encoding.</p><p>One important point to note about the consensus key is that it is considered “hot”, meaning that it can and must produce valid signatures at any point in time. In other words, it can be used immediately by our machines. Whereas validator and delegator keys are considered “cold” as they require at least some form of approval before being accessed. There is, therefore, a higher security risk associated with the consensus key compared to validator and delegator keys.</p><p>The two features introduced in upgrade v5.0.x to f(x)Core aim to provide contingency measures against security breaches and potential misuse of the consensus key, thereby safeguarding the validator’s authority.</p><h3>Replacing the Consensus Public Key</h3><p>In the event a server is compromised or the consensus public key is leaked, the validator’s consensus public key can be replaced through a transaction to update the consensus public key.</p><pre>#command<br>fxcored tx staking edit-consensus-pubkey &lt;val&gt; &lt;new-consensus-pubkey&gt; --from <br>addr/granter<br><br>#example<br>fxcored tx staking edit-consensus-pubkey fxvaloper123...<br>&#39;{&quot;@type&quot;:&quot;/cosmos.crypto.ed25519.PubKey&quot;,&quot;key&quot;:&quot;....&quot;}&#39; --from=fx456...</pre><p>The val argument should be the validator’s address, for example: fxvaloper1a73plz6w7fc8ydlwxddanc7a239kk45jnl9xwj. In order to get the argument for new-consensus-pubkey, set up a new node and run the following:</p><pre>fxcored tendermint show-validator --home /root/.fxcore-node-new<br>#/root/.fxcore-node-new is the path of the new node</pre><p>Note that the path of the new node would vary depending on how you set up node; and for the new node, you do not have to set up the validator — this would cause a conflict.</p><p>Between addr/granter, addr is the address controlled by the validator, i.e. the delegator application key or simply the token holding account for the validator which was bound to the node’s consensus when the validator was first <a href="https://functionx.gitbook.io/home/validators/validator-setup">set up</a>; for example: fx1a73plz6w7fc8ydlwxddanc7a239kk45jmwcesj. The granter is the address (or delegator application key) authorized by the validator, to which permissions are transferred, through the process described below.</p><p>It is strongly recommended to update the consensus public key first, and only transfer validator permissions after, because once the permissions are transferred, the old validator operator application key can no longer be used to operate the validator.</p><h3>Transfer Validator Permissions</h3><h4>1. Transferring Permissions</h4><p>Should the validator’s private key get compromised, the current validator’s authority can be transferred to another address by executing the following transaction. At this time, the validator’s existing private key will not be able to send any transactions on the f(x)Core chain; and the authorized address can send any type of transaction for the validator’s address. It is recommended not to transfer permissions if the validator’s private key is not compromised.</p><pre>#------------Transferring Permissions to New Address------------<br><br>#command<br>fxcored tx staking grant-privilege &lt;val&gt; &lt;new-addr&gt; --from addr<br><br>#example<br>fxcored tx staking grant-privilege fxvaloper1vx... fx1g7... --from fx1a7...</pre><p>The new-addr argument is the address to transfer permissions, i.e. the new permissions holder, for example: fx1uphlwe07477h0yvgcr5h26lyylyc7g709jp8ev.</p><p>And the addr argument is the old permissions holder, for example: fx1a73plz6w7fc8ydlwxddanc7a239kk45jmwcesj.</p><p>The transfer permissions transaction can be executed multiple times, for example: by val-addr_0→ addr_1, and then by addr_1 → addr_2.</p><p>Note that when transferring permissions, new-addr and addr signatures are required, as authorization and signatures are required. More importantly, permissions should not be transferred back to the validator address at any point.</p><h4>2. Sending Transactions After Transferring Permissions</h4><p>Once validator permissions are transferred, any subsequent transactions needs to be authorized before the they can be sent. The validator address can no longer directly send transactions, and the new permissions holder must be used to send transactions on behalf of the validator address.</p><p><strong>Authorization:</strong></p><pre>#------------1. Constructing an Authorized MsgSend Transaction------------<br>fxcored tx authz grant &lt;new-key&gt; generic --msg-type=/cosmos.bank.v1beta1.MsgSend <br>--from &lt;old-key&gt; --chain-id dhobyghaut --generate-only &gt; grant_bank_send.json<br><br>#--------------2. Execute Authorize MsgSend Transaction--------------<br>fxcored tx authz exec grant_bank_send.json --from &lt;new-key&gt; --gas=&quot;auto&quot; <br>--gas-adjustment=1.5 --gas-prices=&quot;4000000000000FX&quot; --keyring-backend test <br>--chain-id dhobyghaut</pre><p>The old-key argument is the key of the old permissions holder. And the new-key argument is the key of the new permissions holder. The first authorization step creates a .json file of the Authorized MsgSend transaction, which will then be executed in the second authorization step. The authorization step grants the new permissions holder the authority to send a transaction for the validator address.</p><p><strong>Transfer:</strong></p><pre>#------------1. Construct the MsgSend transaction------------<br>fxcored tx bank send &lt;val-addr&gt; &lt;new-addr&gt; 1FX --chain-id dhobyghaut <br>--generate-only &gt; bank_send.json<br><br>#------------2. Execute the MsgSend transaction------------<br>fxcored tx authz exec bank_send.json --from &lt;new-addr&gt;--gas=&quot;auto&quot; <br>--gas-adjustment=1.5 --gas-prices=&quot;4000000000000FX&quot; --keyring-backend test <br>--chain-id dhobyghaut</pre><p>The new-addr argument is the address of the new permissions holder, which should be authorized at this point. The first step creates a .json file of the constructed MsgSend transaction, which will then be used in the execution of the transaction in the second step. The MsgSend transaction is thus executed by the new validator permissions holder.</p><h3>Moving forward with f(x)Core v5.0.x</h3><p>Please note that the above features are currently unavailable for ledger account types. Sending transactions related to transferring validator permissions require signing custom data on the f(x)Core chain with a new private key, however the ledger hardware does not support signing custom data at the moment.</p><p>Replacing the consensus public key and transferring validator permissions are available with f(x)Core v5.0.x and you can find the steps to upgrade your f(x)Core node <a href="https://functionx.gitbook.io/home/upgrade-instructions/cosmovisor">here</a> (we highly recommend using Cosmovisor to perform your upgrade!).</p><p>The new features introduced in the f(x)Core v5.0.x upgrade represent a new innovation that the team has worked towards to fortify the network further against potential threats and vulnerabilities; and they ensure that users can transact and interact with the f(x)Core network with confidence.</p><h3>Next</h3><p>Thank you for reading this month’s tech update and stay tuned for the next one on f(x)Core developments!</p><p>If you’d like to know more about Function X and stay up-to-date with us, check out any of the links below.</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ad4bef5bc7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/function-x-f-x-core-v5-0-x-99ad4bef5bc7">Function X f(x)Core v5.0.x</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Replicated Security?]]></title>
            <link>https://medium.com/pundiai/what-is-replicated-security-1cf1152b622c?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cf1152b622c</guid>
            <category><![CDATA[functionxcommunity]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cosmos]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 11:22:47 GMT</pubDate>
            <atom:updated>2023-07-20T11:22:47.677Z</atom:updated>
            <content:encoded><![CDATA[<h4>A look at the Cosmos Hub’s new security technology</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8jKq-vMDqXzV1-n_yXMTA.png" /></figure><p>The Cosmos Hub is a vibrant and innovative blockchain that serves as the central hub of the Cosmos ecosystem. It is also the first blockchain to be built within the <a href="https://medium.com/functionx/what-is-the-cosmos-ecosystem-6f0c76412223">Cosmos ecosystem</a>, which is now home to over 50 sovereign and natively interconnected blockchains. The Cosmos Hub is a Proof-of-Stake (PoS) blockchain and its network is powered and governed by its native cryptocurrency: ATOM.</p><h3>Concept</h3><p>Within Cosmos, Interchain Security is a broad stroke to describe a set of “shared security” protocols. And with Interchain Security, a Provider chain like the Cosmos Hub for example, will be able to lease its security to a Consumer chain. Simply put, the sharing of validators through Replicated Security would allow the Consumer chain to inherit the entire security of the Provider chain.</p><p>With Replicated Security, teams on application-specific blockchains can utilize the Cosmos Hub’s validator set and ATOM staking to secure their own networks while preserving the ability to build on their own blockchains. In addition, validators and delegators on the Cosmos Hub can benefit from earning rewards for their contributions in securing these other blockchains.</p><h3>How does Replicated Security Work?</h3><p>The Cosmos Hub runs on the PoS consensus mechanism, in which validators validate transactions, propose new blocks, and earn rewards for their work in helping to secure the network. Validators can also be penalized by getting a portion of their stake slashed if they misbehave. Architecturally, Cosmos is structured around Hubs and Zones. A Zone is an independent blockchain, while a Hub is a specialized blockchain that facilitates the interconnection of all the Zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5m8P1QX1NUg9m1uiRo82XA.png" /><figcaption>Source: <a href="https://koreablockchainweek.com/blogs/kbw-blog/introducing-new-interchain-features">https://koreablockchainweek.com/blogs/kbw-blog/introducing-new-interchain-features</a></figcaption></figure><p>Through Replicated Security, the Cosmos Hub assumes the role of a Provider chain by providing its security to each Zone that seeks to inherit the Hub’s security. Zones that do so will then assume the role of the Consumer chain. Replicated Security is enabled through the Inter-Blockchain Communication (IBC) protocol through which packets are regularly relayed from the Provider chain to Consumer chains.</p><h3>Benefits and Limitations</h3><p>From a security perspective, Replicated Security enables the Cosmos Hub community to introduce new features through Consumer chains without jeopardizing the security of the Hub. This flexibility allows the Cosmos Hub to evolve while adhering to the principles of Practical Hub Minimalism — a design philosophy that ensures the Hub can expand its capabilities without adding unnecessary complexity or risk to the core functionalities of the Hub itself.</p><p>In terms of tokenomics, one of the significant challenges faced by Cosmos’s native token is its lack of utility. Replicated security would underscore ATOM as the main unit of account within the Cosmos ecosystem. ATOM is anticipated to function as the gas token for networks on Replicated Security and seamlessly integrate with the DeFi ecosystems of Consumer chains; and ATOM can even serve as the reserve asset within Cosmos treasuries.</p><p>While Replicated Security marks another milestone achievement for Cosmos, this new technology is not free from limitations.</p><ol><li>Validators that are participating in Replicated Security on the Provider chain are expected to have their nodes up and running on the Consumer chain. This inadvertently creates a limitation — economically, for the number of chains a validator can secure.</li><li>Revenue generated by most Consumer chains starts at a low level and only increases with adoption and usage; and validators may only start earning revenue from the Consumer chain if adoption and usage reaches a certain threshold.</li><li>On the Cosmos Hub, the distribution of validators’ staked collateral is asymmetrical, and PoS blockchains reward validators based on the amount of staked collateral they have. This further compounds the challenges that validators participating in Replicated Security face, as validators that have a higher stake could potentially receive significant rewards while validators with a lower stake may encounter financial difficulties.</li></ol><h3>In Closing</h3><p>For Replicated Security to surpass its limitations, various solutions can be explored to enhance the technology.</p><p>Replicated Security is a groundbreaking feature within the Cosmos ecosystem that allows the Cosmos Hub to share its security with other connected blockchains. By leveraging the Cosmos Hub’s validator set, application-specific blockchains have a lower barrier to entry and they can secure their networks while focusing on their unique requirements. This innovation brings numerous benefits, including additional rewards for stakeholders on the Cosmos Hub, a strengthened network effect, and the ability to introduce new features without compromising security.</p><p>As it stands, five Consumer chains have already committed to launching with Replicated Security, with <a href="https://neutron.org/">Neutron</a> being the first to implement it at the time of writing.</p><p>Despite some of its limitations, Replicated security demonstrates the Cosmos Hub’s commitment to building a secure and efficient internet of blockchains. With Replicated Security, the Cosmos ecosystem can continue to create more economic opportunities, evolve and innovate in both an exponential and sustainable way, while maintaining a strong foundation of security and utility for all stakeholders.</p><p>If you’d like to know more about Function X, check out one of the links below. Thanks for reading this month’s article on Replicated Security and see you at the next one!</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><p><strong>Co-Writer Info<br></strong>Le Thang<strong> </strong>has been in Cosmos for over 2 years and is currently working as head of research of Cryptocito. He also likes to write about what he’s learned on his crypto journey, focusing mainly on the Cosmos tech stack and a bit of the Ethereum ecosystem.</p><p><a href="https://twitter.com/LeThang137">Twitter</a> | <a href="https://lethang.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cf1152b622c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/what-is-replicated-security-1cf1152b622c">What is Replicated Security?</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Cosmos Ecosystem?]]></title>
            <link>https://medium.com/pundiai/what-is-the-cosmos-ecosystem-d05600c6873f?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/d05600c6873f</guid>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[stargaze]]></category>
            <category><![CDATA[osmosis]]></category>
            <category><![CDATA[functionxtech]]></category>
            <category><![CDATA[cosmos]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 09:40:05 GMT</pubDate>
            <atom:updated>2023-06-30T09:40:05.321Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bi8uz-GB9HHsruDgZOaPZA.png" /></figure><p>A high-level summary of the Cosmos ecosystem and some of its projects (Part 2)</p><p>Previously, we talked about the building blocks of the Cosmos ecosystem, its unique architecture, and ecosystem wallets. We explored how the Tendermint consensus algorithm, the Cosmos SDK, and Inter-blockchain Communication Protocol (IBC), coupled with the ecosystem’s Hub and Zones architecture, enable builders to build truly interoperable and scalable blockchain projects that have the potential to reach the next billion blockchain users.</p><p>In part two of this month’s two-part article, we will explore and highlight a number of notable and exciting blockchain projects that are on the Cosmos ecosystem. Let’s get to it!</p><h3>Notable Cosmos Projects</h3><h4>Osmosis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C64U9teCIuS_K9sTy5kVkw.png" /></figure><p>Osmosis is a blockchain built using the Cosmos SDK and it is designed to support automated market maker (AMM) applications that are cross-chain enabled through the IBC. AMMs allow traders to easily buy and sell assets — in a decentralized and permissionless manner, with liquidity pools instead of people as with traditional order books. Notably, the first application built on Osmosis is an AMM also called Osmosis; and through Osmosis, users can swap IBC-enabled tokens and provide liquidity for yield farming.</p><p>The Osmosis AMM sets itself apart from most existing AMMs by being highly customizable. Users on Osmosis can create their own custom liquidity pools, clone existing pools with an entirely different set of parameters, and even create pools with more than two assets. This allows pool participants to adapt to market conditions and even decide on the parameters which yield the best returns. Developers looking to build can also capitalize on the underlying protocol to configure a wide range of features and parameters, such as swap fees, token weights, bonding curve, to build AMMs that meet their specific needs.</p><p>The native token of Osmosis is OSMO, and holders can use OSMO to participate in governance and staking. By virtue of being built on the Cosmos ecosystem, Osmosis users are able to trade assets easily from more than 40 blockchains within Cosmos, thus making Osmosis the go-to decentralized exchange (DEX) in the ecosystem. To learn more about Osmosis in detail, click <a href="https://osmosis.zone/">here</a>.</p><h4>Neutron</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AkEx0GOhkMY2aggm83i8Gg.png" /></figure><p>Neutron is a Zone on the Cosmos Hub designed to be a permissionless interchain smart-contract platform for DeFi projects across the Cosmos ecosystem. Neutron is built using Tendermint and the Cosmos SDK, and it features support for Cosmos WebAssembly (CosmWasm) which is natively built into the network; allowing smart contracts written in Rust, Solidity, and other programming languages to run on Cosmos blockchains. The network is also the first Cosmos-based chain to launch on Replicated Security — a new feature on the Cosmos Hub which offers advanced security to projects launching as consumer chains on the Hub.</p><p>A consumer chain is simply a Zone that leases security from a Hub; and on Neutron, this means that the entire validator set on the Cosmos Hub will help to produce blocks and validate transactions on Neutron, allowing Neutron to benefit from the same degree of security as the Cosmos Hub. In exchange, revenue is shared between the networks, and stakeholders on Cosmos Hub will receive additional revenue from Neutron on top of what they’d receive from Cosmos. Neutron features IBC support, as well as Interchain Account and Interchain Queries support, allowing any protocol that deploys on Neutron to interoperate with any IBC-enabled chain and also to execute highly complex operations such as interchain liquid staking or collateralization.</p><p>With Neutron, builders looking to build DeFi protocols have a highly secured and well-connected hub to build upon. Replicated Security on Neutron also enables projects to save on the infrastructure and resources needed to host their own set of validators for security since the Cosmos Hub provides it from its own existing validators; in turn, builders can focus more on development and productivity without concerns for security. Learn more about Neutron <a href="https://neutron.org/#0">here</a>.</p><h4>Stargaze</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y775Sb3bQv-jHA-lyGVhhg.png" /></figure><p>Stargaze is a fully decentralized Zone for NFTs built on the Cosmos ecosystem. Stargaze features a zero gas fee NFT launchpad for creatives to sell their digital art collections, as well as its own marketplace for users to trade and stake NFTs. As a Cosmos-based protocol, Stargaze benefits from high levels of security, decentralization, transparency, and flexibility in terms of compatibility and scalability; and it can interoperate with any IBC-enabled chain, as well as EVM chains.</p><p>Like most blockchains on Cosmos, Stargaze features its own native token: STARS. The STARS token can be used for transactional fees, staking and running validator nodes on the network, and voting on governance proposals. Unlike other NFT marketplaces, Stargaze’s governance-driven development process allows rapid development and iteration needed for a consumer social protocol, in a transparent and equitable manner. The project also has a foundation which holds a strategic reserve of STARS tokens, which can be used to drive adoption, onboard creators, and even provide grants for ecosystem development.</p><p>Stargaze is one of the first NFT marketplaces to launch on Cosmos and it solves many of the problems that other NFT marketplaces face such as high centralization, lack of transparency in deployment contracts, poor security, scams, limited flexibility, high gas fees, and royalty restrictions. And this attributes to Stargaze being its own sovereign chain, having a more secured smart contract platform, being more flexible and allowing NFT projects to work closely with their communities, and having very low transaction fees which gives users more buying power and projects the freedom from transaction fee concerns. Learn more about Stargaze <a href="https://www.stargaze.zone/">here</a>.</p><h4>Function X</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ic3Lgm9yIyZxIbYBs1pwTQ.png" /></figure><p>Function X is an ecosystem built entirely on and for the blockchain. The Function X ecosystem is decentralized and it runs autonomously in perpetuity without the need for any individual or organization to supervise it. Function X allows developers to easily build dApps on the network; and also allows blockchains to be built using a subnet solution, enabling Function X based projects to inherit the network’s security, high transaction speed and low cost.</p><p>The f(x)Core blockchain underlying Function X is a Hub on the Cosmos ecosystem, and this means that f(x)Core is IBC-enabled and fully interoperable with any other blockchain on Cosmos. With the recent release of the f(x)EVM blockchain in the Hub, Function X is also EVM compatible and it is notably one of the first Cosmos-based projects to do so. With f(x)EVM, developers can migrate their dApps to Function X seamlessly and benefit from the network’s infrastructure. In addition, the network has a unique multi-chain architecture and cross-chain bridge to enable interoperability between f(x)Core, other Function X based chains, as well as all EVM chains. Users on Function X can benefit from multiple blockchain ecosystems and transfer their assets easily between them. Other notable chains that are part of the Function X Hub are the <a href="https://pundix.com/">Pundi X </a>chain and <a href="https://marginx.io/">Margin X</a>.</p><p>Function X is a Delegated Proof of Stake blockchain and it has its own native token: FX, which holders can use to participate in governance, staking, and other utilities in decentralized finance (DeFi). Function X has its own network wallet called f(x)Wallet, which is designed to optimize user experience between all chains on Function X, including those in the greater Cosmos and Ethereum ecosystems. The network features its own blockchain explorer: StarScan; and a DEX called <a href="https://medium.com/functionx/function-x-october-hash-out-6528e9745cf7">FX Swap</a>, which users can leverage to exchange their tokens, provide liquidity and earn staking rewards. It also has an NFT marketplace — FoxChange, which is developed by one of the network’s validators; and is running on the f(x)EVM chain.</p><p>There are many new projects launching on the Function X ecosystem, including an exciting new DeFi project: <a href="https://forum.starscan.io/t/baklava-space-proposal-synthetic-asset-minting-on-fx/4729">Baklava Space</a>. With Function X, users are offered an entire infrastructure that can handle retail payments, perpetual trading, DApp and DeFi utility. Head on to Function X’s <a href="https://functionx.io/home">website</a> and <a href="https://forum.starscan.io/">forum</a> to learn more.</p><h4>Aura</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkiOorT8XBvXf6y4ZMtESQ.png" /></figure><p>Aura is another ecosystem built on the Cosmos, with a focus on accelerating global NFT adoption. Aura aims to be a leader in building infrastructure for NFT use-cases, and the ecosystem is driven by an underlying blockchain tailored for NFT utility. Developers can also utilize Aura’s open-source and scalable tools to build on the Aura network and tap on the network’s high performance, security and utility especially for their NFT projects. Like other blockchains built using the Cosmos SDK, Aura is also fully interoperable with the Cosmos ecosystem and any IBC-enabled chain.</p><p>There are two native cryptocurrencies on the Aura ecosystem; Aura coin which is native to their recently released mainnet — Xstaxy, and Aura token on Binance Smart Chain (BSC). Holders of Aura coin can participate in governance and staking and DeFi utilities on the mainnet, while holders of the Aura Token can continue to trade with them on BSC or migrate them to Xstaxy. The network features a myriad of applications to enrich users’ experience on Aura, such as <a href="https://coin98.com/">Coin98</a> Wallet, AuraScan — the networks own blockchain explorer, Pyxis Safe — a gnosis safe multi-signature wallet, and Horoscope — an interchain indexer.</p><p>The team at Aura is working to release many new applications on the network, such as a DEX, an NFT and metaverse hub, an NFT project launchpad and more. With an entire ecosystem geared towards practical NFT utility and mainstream adoption, Aura provides grounds for helping existing web2 businesses to transform to web3, and brands and IP owners to start their web3 portfolios. Learn more about Aura <a href="https://aura.network/">here</a>.</p><h3>Closing Thoughts</h3><p>The Cosmos ecosystem is host to many exciting blockchain projects that are primed to onboard the next billion blockchain users. As seen across the projects mentioned in the article, interoperability, scalability, and ease-of-development are recurring themes; and these are amongst the qualities that make the Cosmos ecosystem truly unique and cutting-edge. With better security and more fluidity between all interconnect chains, the Cosmos ecosystem offers a network of unified blockchains and the foundations needed to create a true internet of blockchains.</p><h3>Next</h3><p>If you’d like to know more about Function X, check out one of the links below. Thanks for reading this month’s two-part article and see you at the next one!</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d05600c6873f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/what-is-the-cosmos-ecosystem-d05600c6873f">What is the Cosmos Ecosystem?</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Cosmos Ecosystem?]]></title>
            <link>https://medium.com/pundiai/what-is-the-cosmos-ecosystem-6f0c76412223?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f0c76412223</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[functionxtech]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Sat, 27 May 2023 13:18:52 GMT</pubDate>
            <atom:updated>2023-05-27T13:18:52.698Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6j4xaoKkc70o9lA_6iDCFQ.png" /></figure><p>A high-level summary of the Cosmos ecosystem and some of its projects (Part 1)</p><p>The Cosmos ecosystem is a decentralized network of independent blockchains that can scale and interoperate with one another. Each blockchain in the Cosmos ecosystem is built using the Cosmos software development kit (SDK) and is powered by BFT consensus algorithms such as the Tendermint (a.k.a Ignite) consensus. With the release of its whitepaper in 2016, Cosmos was soon referred to as the Internet of blockchains by its founders who wanted to create a platform home to interoperable blockchains.</p><p>Before the advent of Cosmos, blockchains were unable to communicate with one another, rendering them isolated and poor in utility; and users had their digital assets confined to the network which they originated from. On top of that, blockchains could only handle a small amount of transactions per second. Cosmos addresses these challenges with its vision to allow developers to build blockchains easily and to allow these heterogeneous blockchains to transact with one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_oMbXjUbDFnh7sExEkWaQ.png" /><figcaption>Source: <a href="https://v1.cosmos.network/assets">https://v1.cosmos.network/assets</a></figcaption></figure><p>With Cosmos, blockchains can maintain sovereignty, handle large amounts of transactions quickly, and communicate with other blockchains in the ecosystem. To achieve their technical vision, Cosmos uses a very unique architecture and the following building blocks: the Tendermint consensus algorithm, the Cosmos SDK, and the Inter-Blockchain Communication protocol (IBC), to let builders build their blockchain projects and grow the Cosmos ecosystem.</p><p>In the first of a two-part article, we will explore these building blocks, along with the unique architecture of Cosmos, and ecosystem wallets. And in the second part, we will explore and highlight a number of notable and very exciting Cosmos-based projects.</p><h3>Tendermint Consensus Algorithm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCK3IAT7icPRB8_5hi20pg.png" /><figcaption>Source: <a href="https://v1.cosmos.network/assets">https://v1.cosmos.network/assets</a></figcaption></figure><p>Building a blockchain used to require building the networking, consensus, and application layer from scratch. Ethereum simplified the development of decentralized applications (dApps) by offering the Ethereum Virtual Machine, on which developers can deploy custom logic through smart contracts. However, it did not simplify the process of building blockchains themselves. This is where Tendermint makes a difference.</p><p>Tendermint is a <a href="https://en.wikipedia.org/wiki/Byzantine_fault">Byzantine Fault</a> Tolerant (BFT) system that bundles the networking and consensus layers of blockchains into an engine known as the Tendermint Core. The Tendermint Core guarantees that transactions are recorded the same — chronologically, on every machine, and it is connected to the application layer by the Application Blockchain Interface (ABCI). The ABCI supports state machines written in any programming language, allowing complete versatility in application development.</p><p>Blockchains built on top of Tendermint are secure, high performing (handling up to thousands of transactions per second), and can reach a consensus when at least two-thirds of the network’s participating nodes do not fail in arbitrary ways. Tendermint also provides instant finality, which means that a transaction is considered valid once it is included in a block and the block is added to the chain.</p><h3>Cosmos SDK</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Pibp1PxGCw_KcjJ7QfiCA.png" /><figcaption>Source: <a href="https://v1.cosmos.network/assets">https://v1.cosmos.network/assets</a></figcaption></figure><p>The <a href="https://docs.cosmos.network/v0.47/intro/overview">Cosmos SDK</a> helps developers build their own custom and interoperable blockchains on top of Tendermint by providing a generalized framework based on modularity and capabilities-based security. The SDK contains composable modules that allows developers to build without having to code each bit of functionality of their application from the ground up — including creating new modules for their specific use-cases. The Cosmos SDK also provides tools for building command line interfaces, REST servers, and other utility libraries. The modularity of the Cosmos SDK allows developers to port any blockchain codebase written in Golang on top of it, and a great example of this is <a href="https://docs.ethermint.zone/intro/overview.html#">Ethermint</a>. Ethermint functions identically to Ethereum, but it also reaps the benefits of the Tendermint consensus algorithm.</p><h3>Inter-Blockchain Communication Protocol</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7HvYD8bADgOoZNIOQb3jg.png" /><figcaption>Source: <a href="https://v1.cosmos.network/assets">https://v1.cosmos.network/assets</a></figcaption></figure><p>The connection between Cosmos-based blockchains is achieved through the IBC. IBC is a software protocol that aims to provide a solution to cross-chain communication in the Cosmos ecosystem. It leverages on the instant finality property of Tendermint to allow heterogenous blockchains to authenticate and transport data and assets between one another. This means that blockchains with different layer implementations, tokens, validators, even rules, can interoperate with one another, thereby eliminating the need for an intermediary such as a cross-chain bridge for transfers between different blockchains. The IBC is a critical component of the Cosmos ecosystem, and it allows blockchains that are IBC-enabled to interact securely with each other. IBC is not only limited to Cosmos-based blockchains, and any blockchain that uses a fast-finality consensus algorithm can adapt to IBC and connect with Cosmos. To get a more in-depth understanding of the IBC protocol, click <a href="https://tutorials.cosmos.network/academy/3-ibc/1-what-is-ibc.html">here</a>.</p><h3>Architecture: Hubs and Zones</h3><p>While IBC enables two different blockchains to communicate with each other, Cosmos aims to create an entire network of communicating blockchains. Connecting all blockchains on Cosmos via direct IBC connections is not feasible as the number of required connections to do so increases quadratically with the number of blockchains in the ecosystem. Cosmos solves this challenge with a modular architecture composed of two blockchain classes: Hubs and Zones.</p><p>A Zone is simply a heterogeneous blockchain built on the Cosmos ecosystem, and a Hub is a specialized blockchain whose sole purpose is to connect Zones together. Zones only need to establish an IBC connection to a Hub and they will be able to communicate with every other Zone connected to the same Hub. Hubs, which serve as routers for Zones, can also be connected to other Hubs in the ecosystem. This network of Zones and Hubs is what makes up the Cosmos ecosystem. It is also worth noting that the Cosmos ecosystem is permissionless and anyone can create a Zone or Hub; and blockchains are free to decide who they want to connect with.</p><p>The Cosmos Hub is the first Hub to be launched on the Cosmos ecosystem and it is the most important blockchain in the entire ecosystem. It is a Proof-of-Stake blockchain whose network is governed and powered by the ATOM — its native cryptocurrency. Every blockchain created on the ecosystem is connected to the Cosmos Hub, and the Hub unifies every blockchain and keeps a record of its state.</p><h3>Ecosystem Wallets</h3><p>There are more than 30 wallets supported in the Cosmos ecosystem; and the major wallet in the ecosystem is <a href="https://www.keplr.app/">Keplr</a>. Keplr wallet is an open-source IBC-enabled wallet for the Cosmos ecosystem that integrates with more than 40 chains at the time of writing. It provides transactional functionalities between all blockchains in the Cosmos ecosystem, as well as any other IBC-enabled blockchain. Users can simply manage all of their assets on these IBC-enabled blockchains from a single interface, and even move them around a repertoire of interoperable networks and dApps.</p><h3>Closing Thoughts</h3><p>The Cosmos ecosystem is built on a set of modular, transposable, and versatile tools to help developers and teams create highly interoperable blockchain projects that can scale horizontally and vertically to reach the next billion blockchain users. By providing developers and teams with the framework and tools needed for them to easily launch their own blockchains, Cosmos offers a service unlike any other blockchain and it paves the way to build a truly decentralized internet and financial system of the future.</p><h3>Next</h3><p>If you’d like to know more about Function X, check out one of the links below. This is the first of a two-part article, so stay tuned for the second one!</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f0c76412223" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/what-is-the-cosmos-ecosystem-6f0c76412223">What is the Cosmos Ecosystem?</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Governance]]></title>
            <link>https://medium.com/pundiai/blockchain-governance-53098dc39f0e?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/53098dc39f0e</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[functionxtech]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 20:26:09 GMT</pubDate>
            <atom:updated>2023-08-08T06:48:04.396Z</atom:updated>
            <content:encoded><![CDATA[<h4>An overview of how some of today’s leading blockchains govern their decentralized networks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jM7Lti5Y7Sk-B0VjCFMn1Q.jpeg" /><figcaption>Picture Source: <a href="https://twitter.com/cosmoszone/status/948804090917675008">https://twitter.com/cosmoszone/status/948804090917675008</a></figcaption></figure><p>In a typical organization or government, a consensus is required to change its rules and regulations, and even deciding on a future direction. This occurs through a board of directors and shareholders, or a group of elected officials who would have the final-say in making such decisions. The same applies to blockchain networks — a consensus must be reached to enact changes. But how do decentralized networks, which are not owned and controlled by a single authority, govern themselves?</p><p>Blockchain networks can be described as polycentric, in that blockchain networks are influenced by competitive forces stemming from individuals and groups that are part of and surround the network. These competitive forces characterize the changes that a blockchain network may undergo over time, and are defined through the network’s governance. Blockchain governance refers to the mechanism set by the network to enact changes to the blockchain and its protocols, including its roadmap, equitably and inclusively.</p><p>Governance mechanisms are fundamental to blockchains as well as the protocols that are built on top of them, and they are relied upon to make critical decisions such as adjusting chain-parameters, token policy, and even making irreversible chain forks. We will look at how some of today’s leading blockchains handle governance, but it is important to know the two primary types of blockchain governance: off-chain governance and on-chain governance. These terms describe how decision-making processes take place, either off the blockchain through informal discussions, conferences, core development team meetings, or on the blockchain through staking and voting on proposals.</p><h3>Ethereum</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PQZGkF-b5CziegAGdtfeQ.png" /></figure><p>Ethereum governance occurs off-chain, and various stakeholders in the Ethereum community are involved in the governance process. Stakeholders include core developers, validators, EIP authors, node operators, application developers and users, and people who hold ether. The fundamental process in Ethereum governance is the proposal of Ethereum Improvement Proposals (EIPs). EIPs describe standards for implementing changes to the Ethereum network; and are what the community describes as their “source of truth”. EIPs can range from small to major topics, including technical specifications, new features, even making changes to the mechanisms that drive the network. Guidelines for proposing EIPs are described in <a href="https://eips.ethereum.org/EIPS/eip-1"><strong>EIP-1</strong></a>, and anyone can write an EIP to propose changes to Ethereum so long as they adhere to the guidelines.</p><h4>EIPs — Ethereum Improvement Proposals</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yc-61VKtrzGcrr7gdY57Hg.png" /></figure><p>EIPs are the basis of governance in Ethereum. Each EIP undergoes many rounds of amendments and is debated upon until a consensus is reached by stakeholders. When an EIP is approved, Ethereum’s core development team will write, test and implement the code required to manifest the approved EIP. The EIP (generally bundled together with other approved EIPs) will then be scheduled for a network upgrade, during which the entire network of Ethereum nodes must voluntarily choose to execute the upgrade to implement the EIP. In that sense, an EIP — and the changes it proposes, can only truly be part of Ethereum if all stakeholders support it. Stakeholders would generally be in full agreement with the proposed protocol changes; however if a group refused to implement the changes during a network upgrade, then the chain would split into two distinct blockchains as the protocols between the two groups would become incompatible.</p><p>Although anyone can propose EIPs, in reality these are mostly written by developers due to the technical expertise required to write them. In addition, EIPs are mostly vetted only by the core development team and community members who are technically inclined. Moreover, EIPs for major upgrades like a hard-fork (such as the Merge) can only be implemented by the core team. These are some elements of centralization surrounding Ethereum’s governance. While Ethereum governance remains off-chain, many use cases built on top of Ethereum, such as <a href="https://ethereum.org/en/dao/"><strong>DAOs</strong></a> (Decentralized autonomous organizations) use on-chain governance. A great example of this is Arbitrum.</p><h3>Arbitrum</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4QUqXIoYK8gDioi-KOElQ.png" /></figure><p>Arbitrum is a layer 2 solution designed to scale Ethereum and it uses an Optimistic rollup to batch multiple transactions executed on a sidechain while synchronizing transaction state data with Ethereum. Arbitrum was once governed by a board, and it sought to make its governance decentralized through the formation of a DAO and launch of its governance token: ARB. Since the airdrop of ARB tokens to the community, Arbitrum has officially transitioned into a DAO.</p><h4>Arbitrum DAO</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WciQsNogWYf3y0fUygxCBQ.png" /></figure><p>Arbitrum’s governance is on-chain and is centered around their One and Nova networks, through the Arbitrum DAO. The DAO represents the global community of ARB holders and delegates that members elect. Unlike in Ethereum, ARB holders will be able to vote on key decisions governing Arbitrum’s networks, and influence how Arbitrum is upgraded and even how revenue can be used to support the ecosystem. ARB holders govern the DAO through Arbitrum governance contracts, which in turn govern the smart contracts and parameters of various Arbitrum networks, and the DAO Treasury which is used to fund ongoing developments and the maintenance of Arbitrum and its technologies. Arbitrum DAO also has a security feature called the Security Council, which is a group of elected entities responsible for protecting the integrity, confidentiality, and availability of the DAO and its chains. The council is empowered by Arbitrum’s constitution to bypass the general voting process and execute any software upgrade or action in light of security threats. Members of the council are elected by the DAO through elections occurring twice a year.</p><h4>AIPs — Arbitrum Improvement Proposals</h4><p>Arbitrum governance is carried out through Arbitrum Improvement Proposals (AIPs) which are submitted to the Arbitrum DAO on-chain, unlike Ethereum’s EIPs. Anyone can submit an AIP, and every new AIP begins as a conversation on the Arbitrum governance forum. A preliminary vote is carried out by the proposer to measure community interest; and after a week, the outcome of the vote is decided by a simple majority with no quorum. AIPs that pass the vote become formal AIPs and will be moved for on-chain voting. For an AIP to be approved on-chain, it must receive more “in favor” votes than “against” votes, and meet a quorum depending on its type: constitutional or non-constitutional. Once an AIP has been approved, the actions defined in the AIP will be executed on-chain and changes will be implemented. The mechanism of AIP implementations will not be discussed.</p><h4>ARB — Governance Token</h4><p>Arbitrum members use their ARB tokens to represent their vote. Smart contracts in the Arbitrum DAO designed for votes to be weighted by the amount of tokens they are backed by. Thus the more ARB tokens a user has, the higher the weight of their vote. ARB holders can also delegate their voting power to a delegate who can vote on their behalf if they are unable to participate in governance. The use of ARB tokens for on-chain governance allows holders to vote directly on proposals that ultimately shape the Arbitrum DAO and all the technologies and protocols it governs, in a democratic and decentralized manner.</p><h3>F(x)Core</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPRydXVc4PVDibGcG7WscA.png" /></figure><p>F(x)Core is a blockchain built using the Cosmos SDK and Tendermint Core, and it is the backbone of the entire Function X ecosystem, which includes other chains such as f(x)EVM, Pundi X Chain, and Margin X. Like Arbitrum and many PoS-based blockchains, f(x)Core governance also occurs on-chain.</p><h4>F(x)Core Governance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YE37ECc1HFcXFk3EcWi-_Q.png" /></figure><p>F(x)Core has a governance module to support on-chain governance, allowing changes to the blockchain to be coordinated through governance proposals. Before governance proposals are formally created on-chain, community members (core development team, stakeholders, general users) typically participate in off-chain discussions held on the <a href="https://forum.starscan.io/"><strong>Function X forum</strong></a> to debate the pros and cons, and seek clarity over proposed changes to the network. Once the proposed changes are widely accepted by the community, the proposer will then create a proposal on-chain and members who hold f(x)Core’s native token: FX, can cast their vote on the proposal.</p><h4>FX — Governance and Native Token</h4><p>F(x)Core community members who participate in governance are delegators and/or validators. Delegators are users who have FX tokens staked with at least one validator, and validators are users who run a full-node and participate in the network’s consensus. A delegator’s voting power is proportional to the total FX that they have bonded to their validator(s); and a validator’s voting power is proportional to the total FX bonded to them as collateral. Delegators who are unable to participate in governance can delegate their tokens to a validator of their choice; and they will simply inherit the vote of their validator(s).</p><h4>Governance Proposals</h4><p>Governance proposals on f(x)Core range from configuring chain parameters to requesting funds from Function X’s <a href="https://medium.com/functionx/function-x-august-hash-out-f7a024aa7c6c"><strong>Ecosystem Genesis Fund (EGF)</strong></a>. To submit an on-chain proposal, an initial deposit is required from the proposer, and this moves the proposal to the deposit period. During which, the proposer and members of the community can continue to add funds to the proposal so that it crosses the deposit threshold required to initiate governance voting on-chain. When the deposit threshold is met, the proposal enters the voting period, and delegators and validators have a week to cast their vote on the proposal. Users who are neither delegator nor validator are not qualified to vote on governance proposals, however, they can still submit and deposit on proposals. For a proposal to be approved on-chain, it must receive more “Yes” votes than “No” votes, and meet a set quorum — based on the proposal type, of the total bonded FX tokens on f(x)Core to be considered valid. If a proposal fails to meet the quorum, it will be rejected regardless of the result of the vote. After getting approved on-chain, the proposal will be implemented, and a network upgrade will be executed.</p><p>For a more detailed explanation of how governance works on f(x)Core, please visit our <a href="https://functionx.gitbook.io/home/governance/governance-proposal-information"><strong>official docs</strong></a>.</p><h3>Closing Thoughts</h3><p>Both off-chain and on-chain governance have their own merits and demerits. Proponents of on-chain governance believe that governance on-chain is the most democratic and transparent way to maintain community consensus, while proponents of off-chain governance believe that governance off-chain provides better security by preventing a majoritarian democracy from taking place. One can even point out that blockchains operating with on-chain governance are a little less secure than their off-chain governance counterparts, while blockchains operating with off-chain governance are a little less decentralized than their on-chain governance counterparts. Despite the differences between these governance mechanisms, blockchain networks and their communities are still able to work together in harmony, and they continue to build and shape their respective networks to move with the times.</p><h3>Next</h3><p>Thanks for reading this month’s tech article and stay tuned for the next one on our f(x)Core publication! If you’d like to know more about Function X and stay up-to-date with us, check out one of the links below.</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53098dc39f0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/blockchain-governance-53098dc39f0e">Blockchain Governance</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Consensus Mechanisms: Proof of Stake vs. Delegated Proof of Stake]]></title>
            <link>https://medium.com/pundiai/consensus-mechanisms-proof-of-stake-vs-delegated-proof-of-stake-a35fb8cdbb94?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/a35fb8cdbb94</guid>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[proof-of-stake]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 13:35:34 GMT</pubDate>
            <atom:updated>2023-03-17T13:35:34.909Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the difference between PoS and DPoS? Is one better than the other?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qk-NCZdsywva7LLE" /></figure><h3>What Is a Consensus Mechanism?</h3><p>In blockchain, a consensus is the way in which peers (nodes) of a blockchain network achieve an agreement on the current state of the data in the network. In a centralized network, consensus can easily be achieved through the work of a single governing entity who decides what constitutes the data in the network; but in the case of a decentralized network, a consensus mechanism is needed to allow all stakeholders of the network to agree on a single version of truth of the data that constitutes the network.</p><p>Blockchain networks are decentralized; every node on the network maintains an identical copy of the blockchain and must verify transactions. Before a blockchain can process new transactions, a consensus must be reached. A blockchain’s consensus mechanism refers to the protocol by which all nodes on the network agree on the validity of transactions — thereby securing the data on the blockchain. There are many different ways to reach a consensus on a blockchain, and each blockchain uses a different consensus mechanism that fits the needs of the users and their use cases. The two most prevalent consensus mechanisms are Proof of Work (PoW) and Proof of Stake (PoS), most notably used by Bitcoin and Ethereum respectively. A non-exhaustive list of other mechanisms include Delegated Proof of Stake (DPoS), Practical Byzantine Fault Tolerance (PBFT), Proof of Authority (PoA), Proof of Burn (PoB), Proof of Capacity (PoC), Proof of History (PoH), Proof of Replication (PoRep), and e.t.c., with each mechanism using different concepts to validate changes on the blockchain.</p><h3>Proof of Stake (PoS)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VjBUs9vISNmonzWDL49vCA.png" /></figure><p>The Proof of Stake mechanism was first hypothesized as a more efficient alternative to validate blockchain transactions than the Proof of Work mechanism which struggled with low scalability and intensively high energy usage. In a nutshell, the PoW mechanism relies on high computer processing power from miners (dedicated nodes involved in creating and adding blocks to the blockchain) to compete and solve complex computational puzzles in order to verify and record blockchain transactions. The miner who solves the puzzle first earns the right to validate transactions and add a new block to the network, and receives compensation in the form of the blockchain’s native cryptocurrency for doing so.</p><p>Unlike PoW, PoS relies on a network of nodes for the verification and recording of blockchain transactions, as well as in earning rewards. Nodes earn the right to validate transactions, create new blocks, and earn rewards through computational randomness, weighted by the amount of collateral — in the form of the blockchain’s native cryptocurrency, that they have locked-up, or staked, in the network. Such nodes under the PoS mechanism are known as validators. Becoming a validator requires users to stake a minimum amount of tokens designated by the rules of the network. The validator is then responsible for checking and “attesting” — voting, that new blocks propagated over the network are valid, and occasionally proposing (creating and propagating) new blocks themselves. Validators earn staking rewards for their participation in the consensus based on their role: voting or proposing, and the amount of collateral they have staked.</p><p>As a result, anyone can stake tokens to the network, and users can even contribute smaller amounts of tokens to staking pools to combine tokens and aggregate their staking power with other users who wish to also participate in staking.</p><h4>Underlying Mechanism</h4><p>The PoS mechanism uses several methods to decide which validator will validate transactions:</p><ul><li><strong>The amount of staked cryptocurrency</strong>: the higher the staked amount, the higher the chance of getting selected to validate the next block</li><li><strong>The age of the stake</strong>: when a validator’s stake is used to verify a block, its age is reset to zero. The greater the age of the stake, the greater the chance of selection.</li><li><strong>Random selection</strong>: a validator is pseudo-randomly chosen to propose the next block, based on an underlying randomness generation algorithm such as RANDAO, which mixes a hash with another metric — often the largest stake or a seed that gets updated every block.</li></ul><p>In PoS blockchains, this means that a validator is algorithmically chosen to validate transactions and create a new block based on their stake on the network. Block time in PoS blockchains are commonly divided into slots and epochs, where <em>x</em> slots make up one epoch. Each epoch, every validator is assigned a role, and validators selected to be block proposers are assigned to a specific slot each in the epoch. At the end of an epoch, validator rewards are distributed and roles are shuffled.</p><p>The term “Proof of Stake” technically refers to a Sybil resistance mechanism. Resistance to Sybil attacks are vital for a decentralized blockchain to reward its stakeholders in a fair manner based on the resources they put in; and Proof of Stake protects against Sybil attacks by requiring stakeholders to put up collateral as an economic deterrent. In simple terms, each vote on a PoS blockchain is backed by money. Another important aspect of a blockchain’s consensus is the chain selection algorithm that allows nodes to correctly identify and follow the canonical chain. In PoS blockchains, the correct chain is determined by the “weight” of the chain, calculated by the accumulated sum of validator votes and weighted by validator staked balances.</p><h4>The Good and the Bad</h4><p>Proof of Stake is a popular consensus mechanism that is considered to be more secure, less energy-intensive, and more scalable than Proof of Work. In PoS blockchains, priority is placed on tokens staked on the network instead of computing power, thus allowing more users to participate in the validation process; and in return, a large distribution of nodes promotes greater decentralization and greater security. Transactions are approved much faster in PoS as validators are selected algorithmically rather than the time taken to solve a puzzle. However, the biggest drawback of the PoS mechanism is that it can tilt towards centralisation by favoring large token holders — as validators with a larger stake increase their chances of selection over validators with a smaller stake. Many variants of the classical PoS consensus mechanism have emerged to address the shortcomings of the validator selection process and improve network efficiency, including different validator selection methods and staking processes. The most notable of these variants is Delegated Proof of Stake (DPoS).</p><h3>Delegated Proof of Stake (DPoS)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vxptu3UbBjx5oTvjyFqBpg.png" /></figure><p>Delegated Proof of Stake works similarly to Proof of Stake, but with a distinction. DPoS uses a voting and delegation mechanism to incentivise users to participate and secure the network with their staked collateral. A successful block production requires users of the network to vote and elect delegates, also referred to as validators or witnesses, who will validate blocks. Users of the network get to determine which validators will validate new blocks, through a voting mechanism in which votes are weighted by the amount of staked collateral found in a staking pool linked to each validator. In essence, users of a DPoS blockchain stake their collateral with the validator they wish to vote for; and the weight of validators is determined by the total amount of staked collateral they carry.</p><p>Unlike in PoS blockchains, most DPoS blockchains assign a limited number of active validators to validate each new block, and the validator(s) for one block may not be the validator(s) for the next; and this number can change to suit the needs of the network. Different DPoS blockchains may also have different rules in determining what constitutes an active validator; for instance, only the top <em>n</em> validators, ranked by the amount of their staked collateral, get to be deemed as active and can participate in the consensus. The validator voting process is continuous and users (delegators) can replace ineffective/inactive validators with another validator any time, through re-delegating their staked collateral to another validator of their choice. As a result, validators are encouraged to be active and honest to continue receiving the backing of their delegators.</p><p>Anyone can be a validator in a DPoS network so long as they meet the staking requirements to be a validator. Validators participate in the blockchain’s consensus by broadcasting their votes and proposing new blocks, and receive revenue for their work. In DPoS, each block proposer is selected deterministically, and the frequency of being selected is proportional to the validator’s staked collateral, i.e. the validator’s voting power. Rewards in the form of block rewards and transaction fees are distributed to validators when they validate blocks. The distribution of rewards may vary slightly between DPoS blockchains, but in general, rewards are divided among active/elected validators according to their weight. Then, in exchange for backing a validator, delegators receive a share of that validator’s rewards in proportion to each of their stake with that validator. In some cases, a commission on delegators’ earnings can be applied by the validator before distribution.</p><h3>Is DPoS better than PoS? Or not?</h3><p>Right off the bat, one can argue that Delegated Proof of Stake is more democratic in selecting validators than Proof of Stake, through its stake-weighted voting and delegation mechanism. In DPoS, validators are selected by the voting power they carry, while in PoS, this is dependent on the amount of collateral staked. The agency of electing validators means that in DPoS, reputation is valued over overall wealth, allowing a more diverse group of individuals to participate in the consensus as opposed to individuals with a lot of money. Users help to ensure accountability as only honest (and the most profitable) validators are retained.</p><p>The limit on the number of active validators allows DPoS blockchains to reach consensus faster than PoS counterparts which require complete network-wide consensus. Setting a cap on the number of active validators means having a smaller group of validators attest to and propose blocks on the network. The outcome is achieving transaction finality quickly and more efficiently, with more blocks being generated and more transactions being handled on DPoS blockchains compared to blockchains that use PoS or other consensus mechanisms.</p><p>In PoS, users may not be able to participate in the network’s governance and play any part in influencing network decisions — this ultimately depends on the rules defined in the genesis block. Often, governance is taken off-chain where only a select group of stakeholders are involved. However in DPoS, users can participate in the network’s governance directly on-chain by virtue of having the voting and delegation mechanism. Users on a DPoS blockchain participate in the network’s consensus with their voting power proportional to the amount of collateral they stake. Validators are required to actively participate in governance by voting on proposals, but delegators are not required to. When a delegator doesn’t vote, they will simply inherit the vote of the validator(s) that they have staked with.</p><p>DPoS is recognised to be one of the most equitable ways to achieve consensus on decentralized blockchains, more so than PoS. But it is not free of limitations. DPoS requires active engagement from its users to vote for validators to ensure that the blockchain network is operational. Without enough participation from both delegators and validators, the network will fail to run. Due to the limited number of validators participating in the consensus, DPoS blockchains may be more susceptible to a 51% attack than PoS blockchains, which occurs when a single validator or group of validators owning more than 50% of a network’s staked collateral behave maliciously towards the network. Though this is highly unlikely, as validators are voted in by users of the network, it is not impossible. On the same narrative, with a limited number of validators, as opposed to hundreds or thousands of validators, a DPoS blockchain may be less decentralized than PoS blockchains when very few users/groups can act as validators. Some may even argue that DPoS blockchains only have a fixed degree of decentralization as the number of validators who can participate in the consensus is predefined, unlike PoS blockchains which have no limits on that number. The same argument could also be said for PoS blockchains which do not feature the voting and delegation mechanism and are regarded as less democratic — thus less decentralized, than DPoS counterparts.</p><h3>Conclusion</h3><p>Ultimately, both Proof of Stake and Delegated Proof of Stake consensus mechanisms feature their own set of merits and demerits. DPoS and PoS are similar in some aspects and yet different in other aspects; and neither is better than the other. Choosing between DPoS and PoS, even other consensus mechanisms, should depend on the use cases and vision of the blockchain project as well as the needs of its users. Ethereum’s co-founder Buterin coined the blockchain trilemma, which articulates that decentralized networks can truly only provide for two out of the three following benefits simultaneously: decentralization, security and scalability. Theoretically, each consensus mechanism diminishes one of the three benefits by a varying degree — PoS and DPoS are no exceptions. Many innovative solutions have come up to help blockchain projects achieve a balance between the three edges of the blockchain trilemma. For instance, the Tendermint consensus (otherwise known as the Ignite consensus as of 2022) which many<a href="https://cosmos.network/"> Cosmos-based</a> blockchains run on — including f(x)Core, features a BFT (Byzantine Fault Tolerance) + DPoS stack to find an effective balance in the blockchain trilemma.</p><h3>Next</h3><p>Thank you for reading this month’s tech article and stay tuned for the next one on our f(x)Core publication!</p><p>If you’d like to know more about Function X and stay up-to-date with us, check out one of the links below.</p><p><a href="https://functionx.io/home">Website</a> |<a href="https://twitter.com/FUNCTIONX_IO"> Twitter</a> |<a href="https://forum.starscan.io/"> Forum</a> |<a href="https://t.me/functionx_io"> Telegram Announcements</a> |<a href="https://t.me/functionx"> Telegram Group</a> |<a href="https://discord.com/invite/J6k8arnyEQ"> Discord</a> |<a href="https://github.com/functionx"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a35fb8cdbb94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/consensus-mechanisms-proof-of-stake-vs-delegated-proof-of-stake-a35fb8cdbb94">Consensus Mechanisms: Proof of Stake vs. Delegated Proof of Stake</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Function X f(x)Core V3]]></title>
            <link>https://medium.com/pundiai/function-x-f-x-core-v3-3eb44267903e?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/3eb44267903e</guid>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ecosystem]]></category>
            <category><![CDATA[fxcore]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 14:05:28 GMT</pubDate>
            <atom:updated>2023-02-16T14:05:28.994Z</atom:updated>
            <content:encoded><![CDATA[<h4>An overview of upgrade v3.1.0.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lr6e8S56VAJHj6tmm8NaKA.png" /></figure><p>Upgrade v3.1.0 on f(x)Core will be a software upgrade and it aims to enhance f(x)Core’s interoperability. Some of the highlights involve cross-chain interoperability with the Avalanche C-Chain, support for more cross-chain tokens, support for standard transfer transactions on the Inter-Blockchain Communication Protocol (IBC) and the use of “0x” addresses as the “From” address in cross-chain communications through the IBC.</p><p>When the upgrade height is achieved, all nodes will automatically stop the consensus and stop producing blocks. All nodes need to be upgraded; and when more than 2/3 of the power value of the validator nodes start and complete the consensus, block production will restart. In order to avoid a long halt in block production (which was experienced during the v2 upgrade),<a href="https://docs.cosmos.network/main/tooling/cosmovisor"> Cosmovisor</a> will be used for the upgrade, which will reduce the entire upgrade process to 3–8 minutes, with close to zero human intervention.</p><p>For validators, we highly recommend configuring your nodes with Cosmovisor. The f(x)Core network will undergo multiple upgrades and by having Cosmovisor integrated, upgrades can be carried out automatically once the proposed upgrade height is reached. Users only need to download the binaries for the upgrade and Cosmovisor will take care of the rest — thereby improving the operating efficiency of nodes on the network.</p><p>The upgrade process will be an on-chain upgrade process, and thus the blockchain will be continued with all the accumulated history with continuous block height.</p><h4>Software upgrade features:</h4><ul><li>Support Avalanche C-chain cross-chain interoperability</li><li>Support cross-chain tokens: AVAX, SAVAX, QI, BAVA and WBTC (ERC20)</li><li>Support IBC standard transfer transaction</li><li>Support the use of 0x address as the “From” address when cross-chain through IBC</li><li>Migrate the “gravity” module to the “eth” module (unify all cross-chain logic) on f(x)Core’s blockchain repository</li><li>The “fee” argument must be empty when calling the contract method: “Transfercrosschain” for IBC cross-chain</li><li>When the contract self-destructs, the contract code cannot be deleted</li><li>The EthereumTx transaction gas limit must be greater than 0</li><li>The EthereumTx transaction “From” address must be empty</li><li>Upgrade WFX contract to support cross-chain transfers of FX Token contract</li></ul><h4>Bug fixes:</h4><ul><li>Fix — bridge oracle address delegation invalid</li><li>Fix — the bug where the alias field of metadata is set to “null”</li><li>Fix — keys command parse address</li></ul><h4>Improvements:</h4><ul><li>Bump go-ethereum version to v1.10.19</li><li>Bump cosmos-sdk to v0.45.11</li><li>Bump tendermint to v0.34.23</li></ul><h3>Enhanced Interoperability</h3><p>Within f(x)Core’s blockchain architecture lies the<a href="https://medium.com/functionx/function-x-july-hash-out-cad08ea9c3c5"> Gravity Bridge</a>, which is a trustless, secure and decentralised bridge between the Ethereum and Cosmos ecosystems. Simply, the Gravity Bridge allows users to cross-chain their assets into other supported blockchain networks.</p><p>The Avalanche C-Chain (Contract Chain) is a layer one blockchain in the Avalanche ecosystem that is EVM-compatible and it supports smart contract creation and execution on the Ethereum Virtual Machine (EVM). For Avalanche users, the C-Chain would be their go-to for building and/or using dApps and DeFi. With cross-chain support for the Avalanche C-Chain, this means that f(x)Core users can now bridge their cryptocurrencies between the f(x)Core and Avalanche networks and use them in the myriad of dApps and DeFi tools on Avalanche.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lK1dY4UXJjQ_Lm5BWKfm8g.png" /></figure><p>Support for AVAX, sAVAX, QI, BAVA and wBTC (ERC20) cross-chain tokens will allow f(x)Core users to move these tokens between f(x)Core and other supported blockchain networks; and use them on protocols such as BENQI, and exchange platforms such as Baklava Space, both of which reside in the Avalanche network.</p><p>IBC enables independent blockchains to connect, interact and exchange data in a permissionless way, promoting high horizontal scalability with transaction finality. Blockchains, and by extension, dApps, that are IBC-enabled are thus interoperable with one another. With f(x)Core’s support for standard transfer transactions on the IBC, f(x)Core users can easily move their assets between chains that are also IBC-enabled, thus enriching interoperability with other heterogenous and app-specific blockchains.</p><h4>Action Required:</h4><p>After the upgrade proposal has passed, all nodes running f(x)Core can be rerun using Cosmovisor. A guide on how to do so can be found on our<a href="https://functionx.gitbook.io/home/upgrade-instructions/cosmovisor-integration-binaries"> gitbook</a>.</p><p>The upgrade height is planned for:</p><ul><li><strong>Mainnet: 8,756,000 (~9th Feb 2023 10:00:00 AM GMT +0800)</strong></li><li>Testnet: 6,578,000（Jan-16–2023 09:49:32 AM GMT +0800)</li></ul><p><strong>Do note that after the upgrade, the code will be backwards incompatible with older versions of f(x)Core.</strong></p><h4>What’s Next?</h4><p>In our <a href="https://medium.com/functionx/function-x-january-2023-hashout-b44640b971c">January 2023 Hashout</a>, we highlighted one of our goals to become the bridge between the Cosmos ecosystem and EVM blockchains. Upgrade v3.1.0 introduces f(x)Core V3 and brings us even closer to that goal through enhanced interoperability with support for the Avalanche C-Chain, more cross-chain tokens, and communications through the IBC.</p><p>Thank you for reading this month’s tech update and stay tuned for the next one on f(x)Core developments! :)</p><p>If you’d like to know more about Function X and stay up-to-date with us, check out one of the links below.</p><p><a href="https://functionx.io/home">Website</a> | <a href="https://twitter.com/FUNCTIONX_IO">Twitter</a> | <a href="https://forum.starscan.io/">Forum</a> | <a href="https://t.me/functionx_io">Telegram Announcements</a> | <a href="https://t.me/functionx">Telegram Group</a> | <a href="https://discord.com/invite/J6k8arnyEQ">Discord</a> | <a href="https://github.com/functionx">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3eb44267903e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/function-x-f-x-core-v3-3eb44267903e">Function X f(x)Core V3</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing FunctionX (FX) — Our First Ledger Nano Application]]></title>
            <link>https://medium.com/pundiai/introducing-functionx-fx-our-first-ledger-nano-application-c7493b2e092a?source=rss-b3777ccf0c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7493b2e092a</guid>
            <category><![CDATA[ecosystem]]></category>
            <category><![CDATA[functionx]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ledger]]></category>
            <category><![CDATA[decentralized]]></category>
            <dc:creator><![CDATA[Malcolm]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 07:41:57 GMT</pubDate>
            <atom:updated>2022-12-05T09:10:24.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing FunctionX (FX) — Our First Ledger Nano Application</h3><p>An introduction to FunctionX (FX) and how to use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRuTOuiAskfX9KFO8jnFMw.png" /></figure><p>A Ledger Device is a hardware wallet that stores private keys to your cryptocurrencies in an offline or “cold” storage. Even if we make a transaction from the hardware wallet, the hardware wallet is used in an offline environment and the mechanism to sign a transaction and broadcast it back to the blockchain network ensures that our private keys are always protected from the risk of any unauthorized access through the internet.</p><p>The f(x)Core blockchain is built on top of the Cosmos SDK and Tendermint protocol. In order to increase compatibility with the Ethereum ecosystem, Ethereum signatures in the f(x)Core and MarginX chains have been introduced since <a href="https://medium.com/functionx/announcing-the-function-x-evm-mainnet-launch-8fc1959c4017">f(x)Core’s EVM upgrade</a>. This EVM integration allows decentralized exchanges (DEXes), liquidity protocols, auto-compounders and other dApps to be deployed on the Function X network. One of the outcomes of the EVM upgrade is the generation of a new type of account that has both fx and 0x wallet types linked; or in other words, the generation of accounts that can support both <a href="https://github.com/satoshilabs/slips/blob/master/slip-0044.md">coin types</a> 118 (ATOM) and 60 (ETH).</p><p>At present, as a result of the EVM upgrade, it is not possible for f(x)Core users who are using Ethereum private keys to sign transactions with the Ledger device. To meet this challenge, our development team at Function X have forked and improved the Cosmos Ledger app, and the new Ledger app that we will be launching will allow f(x)Core users to sign transactions on f(x)Core and MarginX chains, and eventually Pundi X chains, with their Ledger devices.</p><p>Enter FunctionX (FX).</p><h3>FunctionX (FX)</h3><p>FunctionX (FX) is our first Ledger Nano app and it is an app that will run on Ledger Nano devices. The app will be supporting the coin: FX, which is the native utility token of the Function X ecosystem. Users can use the FunctionX app to sign transactions for f(x)Core, MarginX, and Pundi X chains on their Ledger devices.</p><p><strong>Note: FunctionX only supports f(x)Core, MarginX and Pundi X chains. Coin types ATOM and ETH cannot be used, which means that other Cosmos chains and Ethereum chains are not supported.</strong></p><p>At present, the app can only be installed locally through Function X’s Github <a href="https://github.com/FunctionX/ledger-cosmos/tree/fx">repository</a> and a series of CLI command (more below). When the app gets listed on the Ledger app catalog, the app can easily be downloaded through Ledger Live. This article will be updated with a guide on how to install FunctionX through the Ledger app catalog when FunctionX is approved by the team at Ledger.</p><h4>Requirements</h4><p>Before installing, make sure that:</p><ol><li>Your Ledger Nano device has been initialized</li><li>The latest firmware for the device has been installed</li><li>Ledger Live is ready to be used</li><li>Your Ledger Nano device is connected to your computer or laptop</li><li>If installing locally, ensure Docker is running and pip3 is installed, and run the installation on a bash shell</li></ol><h4>Local Installation method (Linux):</h4><p>The following local installation steps will be carried out on the Ledger Nano S Plus. For Ledger Nano S and Ledger Nano X, please refer to the appropriate commands as described below.</p><ol><li>Pull the code from Github and switch to the “fx” branch of the repository</li></ol><pre>git clone https://github.com/FunctionX/ledger-cosmos.git<br>git switch fx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*FUbRN2nJekOM2Yn-ScTyCw.png" /></figure><p>2. Pull the dependent modules</p><pre>git submodule update --init --recursive<br>make deps</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fz-klMhHFeKD-c45w4CP6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*ECT25Ma-TACliWXK5P_YGQ.png" /></figure><p>3. Ensure Docker is running, and build the app</p><pre># For Nano S:<br>make buildS<br># For Nano S Pus:<br>make buildS2<br>#For Nano X:<br>make buildX</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*fZBS1tDxxIVy72c_iT4zlA.png" /></figure><p>4. Install the app to the Ledger device. The device must be connected at this point. And a confirmation on the Ledger device will be required</p><pre># For Nano S:<br>make load<br># For Nano S Plus:<br>make loadS2<br># For Nano X:<br>make loadX</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*J9ne2hazApygoWySvNFpwg.png" /><figcaption>A confirmation on the Ledger device will be triggered</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*Fp7mGRSkJ09nGmb3vG5GMw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*V6tiIMQfq8rc44fzc9AVGw.jpeg" /></figure><p>5. Close Ledger Live on your computer</p><p>6. Open the FunctionX app on the device</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*s_ShTazntTVFcN7cKG563Q.jpeg" /></figure><p>FunctionX is now ready to be used on your Ledger Nano device.</p><h4>Ledger Live installation method (Ledger app catalog):</h4><p>[To be updated after approval from Ledger]</p><h4>How the use of Hardware wallets enhances security and user protection</h4><p>The use of hardware saves us from the anxiety of exposing our funds to cryptocurrency hacks and theft by doing something simple — they keep our private keys offline.</p><p>As mentioned in the earlier in the article, Ledger hardware wallet is a device that stores private keys to your cryptocurrencies in an offline or “cold” storage — away from the internet. And even if a transaction is made from the hardware wallet, the hardware wallet signs the transaction in an offline environment. And this process helps to keep the user’s private keys away from any internet exposure at all times. For more information on Ledger, please visit this <a href="https://www.ledger.com/academy/ledger-nano-the-safest-way-to-manage-crypto">link</a>.</p><p>All hardware wallets are non-custodial wallets, i.e. the user is the only one who has access to his or her private keys and funds. Thus when an individual uses a hardware wallet, the individual will have the private key associated with their cryptocurrency. If you’re reading this and you take crypto seriously, and you understand the (new) risks to such assets, you will understand that this type of storage is the only truly safe option.</p><p>There are many types of hardware wallets at present, but among them, the Ledger Nano series is by far the most secure hardware wallet. Ledger provides a pretty comprehensive <a href="https://www.ledger.com/academy/hardwarewallet/why-you-should-choose-ledger-hardware-wallets">article</a> on why you should consider using their hardware wallet. In addition to giving the user complete control over their funds and keeping their keys offline, the hardware wallet protects a user’s keys with a higher level chip called <a href="https://www.ledger.com/academy/security/the-secure-element-whistanding-security-attacks/">Secure Element (SE)</a>. SE is a component that is used in a variety of security environments such as credit cards, passports, payment systems, and crypto hardware wallets; and it is known for providing the highest level of security for any system that manages sensitive data.</p><p>This means that, besides keeping your private keys offline (and away from hackers), the Ledger Nano device itself is also completely immune to external threats — all thanks to the host of state-of-the-art components inside.</p><h4>Flowchart</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*4K_N5pgTmhV4vXuEHgKP1g.png" /></figure><h4>How to Use FunctionX</h4><p>Currently, the FunctionX app only supports transaction signing on f(x)Core, MarginX and Pundi X chains. Users would also need to have a copy of our fxdexd binaries to use the CLI tool to interact with the FunctionX app. Now that FunctionX is installed, here are some examples of how it can be used with Ledger devices.</p><h4>1. Import of Key</h4><p>Check the address of the key imported by the specified derivation path. If an account is imported using the same seed phrase of the Ledger device, you can check to see if the addresses match. Use the fxdexd CLI tool to import the key, and confirm in the FunctionX app.</p><pre># ledgerKey is the name of the key, which can be chose arbitrarily<br># --ledger is the flag to interact with the Ledger device<br># --acount is the flag for the account number in the BIP44 derivation path,<br># and the value range is: 0 - 100 (Limitation of the Cosmos app)<br>fxdexd keys add ledgerKey --ledger --keyring-backend test --algo eth_secp256k1 --account 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*JG_Lp3fhiqoVa0MwARJkIw.jpeg" /><figcaption>Entering the above command will trigger a transaction review on the Ledger device.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*ehiy5It08aBrHYE3SmMY6w.jpeg" /><figcaption>Press the right button on the Ledger device to review the transaction details, until you see “APPROVE” then press both buttons.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*OCbFurNwilCAYzQQqkxzNA.png" /><figcaption>The CLI tool will return the address derived from the seed phrase of the Ledger device.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*tToxy6RPLrEHfnDko3NLkA.png" /><figcaption>The address on f(x)Wallet matches that of the Ledger device.</figcaption></figure><h4>2. Transaction Signature using MarginX</h4><p>Because all assets on MarginX are cross-chained from f(x)Core, users will need to first receive test tokens from the faucet and then cross-chain the assets through the MarginX cross-chain bridge.</p><p>Get the test tokens (f(x)Core-EVM USDT &amp; f(x)Core FX) <a href="https://testnet-faucet.functionx.io/">here</a>.</p><p>Import the Ledger seed phrase into the f(x)Wallet app. You should see that your account has USDT on the f(x)Core chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*0dZ3DuYZmoVhKD9vxa33hw.png" /><figcaption>When importing an account with the Ledger device’s seed phrase, select “Advanced Options” and choose “m/44&#39;/60&#39;/i’/0/0”. Note that if you choose another derivation path, you will not get the same address.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*nuRzkmlu_trMzRLoOgpPUA.png" /><figcaption>Account assets on f(x)Core chain.</figcaption></figure><p>Open <a href="https://trade.marginx.io/">MarginX’s exchange page</a> and link your f(x)Wallet. Click on “Connect Wallet” and scan the QR code with your f(x)Wallet. You’ll be asked to authorize the connection on f(x)Wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQG2UOi44oeUo_gTTySb7A.png" /><figcaption>Click on “Connect Wallet” to open the QR code.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RimoPklJVv57HsrUGWVkbQ.png" /><figcaption>Scan the QR code with f(x)Wallet to establish the connection.</figcaption></figure><p>After connecting to MarginX, on the same page, click on “Bridge”, and bridge your tokens to one of the chains of MarginX. Here we will bridge USDT tokens to MarginX’s BTC/USDT chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Bbz8rHsuvaX_JrklXW_mA.png" /><figcaption>Click on “Transfer” to initiate the transaction.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETwEhRveyVZ8-y4n9JySaQ.png" /><figcaption>A signature will be required in f(x)Wallet.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*VnBbYeffDV2tnhPEGluLbA.png" /><figcaption>Hit the “Sign” button on f(x)Wallet to sign and approve the transaction. When the transaction is signed, a confirmation pop-up will appear on the MarginX page.</figcaption></figure><p>Next, check the transaction status to ensure that the transaction was successfully confirmed and executed correctly; and that the address of the sender of the transaction matches what is displayed on the Ledger device. We will execute the transfer transaction through the CLI tool, and sign the transaction on the Ledger device. Be sure to specify the node RPC at the end of the CLI command and include the appropriate chain-id.</p><pre># Transfer transaction. After confirming on the CLI, sign the transaction on the Ledger device<br>fxdexd tx bank send ledgerKey 0x61bd2030908d658dd5a2139D2C13Af55b9138efb 10USDT --keyring-backend test --ledger  --sign-mode &quot;amino-json&quot; --node &quot;https://testnet-btc-json.marginx.io:26657&quot; --chain-id &quot;MarginX-Testnet-BTC&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*DUsnIRGKY8mY2hQ8TyxjyA.png" /><figcaption>Executing the command will trigger a confirmation on the CLI. Hit: “y”, followed by the “return” (or “enter”) button to confirm the transaction.</figcaption></figure><p>Next, the transaction will be signed on the Ledger device. When reviewing the transaction, users will be able to review the chain ID, account, sequence, type of the transaction, amount transacted, from address, to address, transaction fees, and gas amount.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*4AiLfW5f_Kl7eyiM7-SwUw.jpeg" /><figcaption>Users can press the right button on the Ledger device to review the transaction details.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*t2jtN9t7EN0Xao81CGrjVA.jpeg" /><figcaption>This is the address associated with the device’s seed phrase. It matches the address of the sender of the transaction (see next image).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*Ut8m0e4MMz1xoqwub7gbDg.png" /><figcaption>The “from_address” represents the address of the sender of the transaction.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*SSGTqTe5O0CRjz-XrmI3Dg.jpeg" /><figcaption>Press both buttons on the Ledger device to approve and sign the transaction.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*nXdVhYcR_0PkzoBAj1YMFA.png" /><figcaption>Once the transaction is signed on the Ledger device, the CLI tool will return the following response. Users can copy the transaction hash (txhash) and view the transaction on StarScan explorer.</figcaption></figure><h4>Viewing the Transaction on StarScan Explorer</h4><p>After signing the transaction on the Ledger device, user’s will be able to copy the transaction hash returned in the CLI and view the transaction on our blockchain explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*fFlpvleSAcls8zt0OJKVDg.png" /></figure><h4>Uninstalling FunctionX</h4><p>To delete the app on the Ledger device, connect the Ledger device to the computer and run the following command</p><pre># For Nano S:<br>make delete<br># For Nano S Plus:<br>make deleteS2<br># For Nano X:<br>make deleteX</pre><h4>Sample Test Code That Interacts With Ledger Emulator</h4><p><a href="https://github.com/falcons-x/ledger-cosmos-go/blob/fx/user_app_emulator_test.go">ledger-cosmos-go/user_app_emulator_test.go at fx · falcons-x/ledger-cosmos-go</a></p><h3>What’s next?</h3><p>If you have not heard about Function X or MarginX and would like to find out more, be sure to check us out in the links below :)</p><p>We will be working to get FunctionX listed on the Ledger Live app catalog so that f(x)Core users can install the app easily through Ledger Live. Once FunctionX is approved by Ledger, we will update this article on how to install our app through Ledger Live, so stay tuned!</p><h3>Support</h3><p>Function X: <a href="https://functionx.io/home">https://functionx.io/</a></p><p>MarginX: <a href="https://marginx.io/">https://marginx.io/</a></p><p>StarScan Explorer: <a href="https://starscan.io/">https://starscan.io/</a></p><p>StarScan Forum: <a href="https://forum.starscan.io/">https://forum.starscan.io/</a></p><p>Function X on Medium: <a href="https://medium.com/functionx">https://medium.com/functionx</a></p><p>Function X Foundation on Medium: <a href="https://medium.com/@functionx_io">https://medium.com/@functionx_io</a></p><p>Ledger: <a href="https://www.ledger.com/">https://www.ledger.com/</a></p><h3>Resources</h3><p>FunctionX (FX) application Github repository:</p><p><a href="https://github.com/FunctionX/ledger-cosmos/tree/fx">GitHub - FunctionX/ledger-cosmos at fx</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7493b2e092a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pundiai/introducing-functionx-fx-our-first-ledger-nano-application-c7493b2e092a">Introducing FunctionX (FX) — Our First Ledger Nano Application</a> was originally published in <a href="https://medium.com/pundiai">Pundi AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>