Skip to main content

Getting Started with Chain Signatures

Chain Signatures is a groundbreaking technology built on NEAR that enables all accounts, including smart contracts, to sign and execute transactions across multiple blockchains.

img

This innovation leverages Multi-Party Computation (MPC) and a distributed network of node operators to create joint signatures from arbitrary payloads, allowing NEAR users to control external blockchain accounts.

Chain Signatures enhances blockchain interoperability, giving ownership of diverse assets, cross-chain accounts, and data to a single NEAR account.


How does it work?​

When a NEAR account - could be a user or a smart contract - wants to interact with a foreign blockchain, it just need to follow four simple steps.

1. Deriving Foreign Addresses​

Chain Signatures uses derivation paths to represent accounts on foreign blockchains

The NEAR account’s name and the derivation path are used to mathematically derive a unique address for the user on the foreign blockchain

Derivation Paths

A NEAR account will always derive the same address on the foreign blockchain using the same derivation path

Notice that, since the foreign address is derived from the NEAR account name, it is not possible for another NEAR account to control the same address

2. Creating the Transaction​

The client constructs the foreign transaction to be signed, which varies depending on the target blockchain

3. Requesting the Signature​

A NEAR account or contract calls the sign method of the MPC smart contract (v1.signer) to sign the transaction and waits while our MPC service generates the signature

4. Relaying the Signature​

Once the signature is ready, the client reconstructs the signed transaction using the signature and broadcasts it to the destination blockchain

tip

Using Chain Signatures, developers can build cross-chain DeFi applications with seamless user experiences, eliminating the need for traditional bridges. This process eliminates the need for traditional bridges and enables developers to build innovative cross-chain DeFi applications with seamless user experiences.


Use Cases​

Chain Signatures can be used to build a wide range of applications that leverage blockchain interoperability. Here are some examples:

  1. DeFi on Bitcoin (and other chain without smart contracts)
    • Chain signatures allow NEAR smart contract to program assets on Bitcoin
    • Build lending, swaps, runes launchpads, passkey-based Bitcoin wallets, and more
  2. Chain agnostic applications
    • Since chain signatures can sign transactions for all blockchains, developers can support every single chain with just one smart contract
    • Multichain DEXs, lending protocols, oracles, derivatives, and more
  3. Multichain account abstraction
    • Users can control assets on all chains with just their NEAR account, and can utilize account abstraction features on any chain including passkeys, key rotation, etc
    • Using the multichain gas relayer, users can pay for gas fees on any chain using USDC
  4. Privacy
    • Chain signatures can be used to encrypt and decrypt information in a programmatic way
    • This enables privacy applications, and even decrypting information based on ownership of assets/NFTs

How to Get Started?​

  1. Familiarize Yourself with Chain Signatures:
  2. Explore the Use Cases:
  3. Access Resources and Documentation:
  4. Try the Demos:
  5. Engage with the Community:

Where to Learn More?​

To dive deeper into Chain Signatures and its applications, you can explore the following resources:

  • Community and Support: Engage with the NEAR community on social media platforms like Twitter and participate in discussions to stay updated on the latest developments
Was this page helpful?