Inside the code choice that connects MetaMask with the Cosmos ecosystem

The Cosmos MetaMask Snap is one of 36 Snaps currently in open beta

article-image

sdx15/Shutterstock modified by Blockworks

share

The launch of MetaMask Snaps brought expanded functionality to MetaMask wallets, allowing users to access different layer-1 blockchains without needing to install different extensions or wallet applications. 

These features enabled the primarily Ethereum-based wallet app to become interoperable with other layer-1 blockchains, such as Bitcoin, Solana and Cosmos chains. 

Snaps achieves this by deriving addresses from other blockchains, according to Christian Montoya, the global product lead for MetaMask Snaps. 

“We can derive from a Cosmos address, so rather than going to a bridge that allows you to transfer tokens from Ethereum to Cosmos, you can just do that within MetaMask and the Cosmos Snap that you install into MetaMask,” Montoya told Blockworks in an interview. “The addresses you’re using to bridge from one way to another are within MetaMask and fully self-custodial.”

As a result, Snaps could expand cross-chain traffic by giving users simple access to bridges. 

There are currently 36 open Snaps in Open Beta, and the Cosmos MetaMask Snap is one of them that has been made available during this time. 

MetaMask is currently one of the most popular crypto wallets today. According to a report by CoinGecko, as of Aug. 1, 2023, a total of 22.66 million users had installed the MetaMask wallet. Making it the most used crypto wallet. Coinbase Wallet, the second largest wallet by installation, only had 11 million users. 

Why Agoric’s hardened Javascript for Cosmos Snaps?

Connecting MetaMask to Cosmos was no easy feat, and the development team chose Hardened JavaScript for its ability to operate with third-party applications without compromising security.  

Agoric CEO and founder Dean Tribble told Blockworks that his team dug into research about how to make JavaScript applications more secure, having previously worked with the founders of MetaMask on extensibility projects.

“Agoric was founded around this: how do you harden JavaScript, how do you safely run confined components written by other people when you don’t trust them,” Tribble said. 

Hardened JavaScript, previously referred to as SES, is what Tribble refers to as the “JavaScript you thought you were programming in.”

JavaScript itself is mutable, so different libraries could change the programming language, Tribble explained. Hardened JavaScript locks down the programming language in the way the spec says it is programming in.

“It gets rid of a few things like non-determinism, but it makes it much better suited for blockchain uses, and it was really the hardening in the ability to run third-party components that got [MetaMask co-founders] excited about it,” Tribble said.


Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

Explore the growing intersection between crypto, macroeconomics, policy and finance with Ben Strack, Casey Wagner and Felix Jauvin. Subscribe to the On the Margin newsletter.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.

Tags

Upcoming Events

Salt Lake City, UT

MON - TUES, OCT. 7 - 8, 2024

Blockworks and Bankless in collaboration with buidlbox are excited to announce the second installment of the Permissionless Hackathon – taking place October 7-8 in Salt Lake City, Utah. We’ve partnered with buidlbox to bring together the brightest minds in crypto for […]

Salt Lake City, UT

WED - FRI, OCTOBER 9 - 11, 2024

Permissionless is a conference for founders, application developers, and users. Come meet the next generation of people building and using crypto.

recent research

Research Report Templates (1).png

Research

Solana Mobile is a highly ambitious foray into the mobile consumer hardware market, seeking to open up a crypto-native distribution channel for mobile-first applications. The market for Solana Mobile devices has demonstrated a phenomenon whereby external market actors (e.g. Solana-native projects) continuously underwrite subsidies to Mobile consumers. The value of these subsidies, coming in the form of airdrops, trial programs, and exclusive NFT mints, have consistently covered the cost of the phone and generated positive returns for consumers. Given this trend in subsidies, the unit economics in the market for Mobile devices, and the initial growth rate and trajectory of sales, it should be expected that Solana mobile can clear 1M to 10M units over the coming years. As more devices circulate amongst users, Solana Mobile presents a promising venue for the emergence of killer-applications uniquely enabled by this mobile-first, crypto-native distribution channel.

article-image

Plus, breaking down Donald Trump’s shifting crypto stance

article-image

Markets are holding relatively steady despite the supply shock

article-image

Analysts are looking ahead to August, a historically volatile month made more interesting this year by the US presidential election

article-image

Plus, a look into Lighting Labs’ newest feature

article-image

Crypto’s Wild West era is over — it’s time to embrace regulation to secure the future of digital assets

article-image

Plus, Solana has now surpassed Ethereum in trailing 30-day decentralized exchange volume