platform
Aug 01, 2024
·
8 min read
Wormhole’s Native Token Transfers (NTT) framework is a flexible and composable, fully open-source solution for transferring tokens across blockchains. This innovative open framework gives integrators full control over their tokens' behavior on each chain, including the token standard, metadata, ownership, upgradeability, and custom features, all while maintaining a unified supply.
Make sure to check the NTT documentation.
Before diving into the details, here's a quick summary of what makes the Wormhole NTT framework stand out:
The NTT framework ensures that tokens retain their properties on each chain, remaining completely fungible and providing a consistent user experience across all blockchains.
With NTT, tokens can be transferred without the need for liquidity pools, avoiding associated fees, slippage, and MEV risks.
The NTT framework allows integrators to retain ownership, upgrade authority, and have complete customizability over token contracts, providing a high degree of flexibility.
NTT offers configurable rate limits for inbound and outbound transfers on a per-chain basis and over arbitrary time periods. This feature helps prevent abuse, manage network congestion, and allows for controlled deployments to new chains.
The Global Accountant feature ensures accounting integrity across chains by verifying that the number of tokens burned and transferred out of a chain never exceeds the number of tokens minted. This mechanism is essential for maintaining the overall token supply balance.
Protocols can assign certain administrative functions, such as the pauser role, to a separate address from the owner to prevent unauthorized calls. This feature enhances security by allowing a quick response to potential risks without a prolonged governance process.
The open-source and extensible nature of NTT promotes widespread adoption and integration with other protocols, enabling a high level of composability.
Built on top of Wormhole’s battle-tested interoperability infrastructure, NTT is ultimately secured by the Guardian Network, which consists of 19 highly reputable validator companies that verify the validity of cross-chain messages.
NTT allows for the addition of external verifiers and configuration of custom message attestation thresholds, further enhancing security and flexibility.
Wormhole is a comprehensive interoperability platform that features a cross-chain messaging protocol. This protocol enables the creation of bridging applications that allow assets to flow across the chains connected to the Wormhole ecosystem and powers multichain token frameworks like NTT.
NTT represents a significant evolution in multichain token functionality, offering distinct advantages over token bridge integrations.
NTT's enhanced flexibility and integrator control make it an optimal choice for protocols seeking sophisticated, customizable multichain deployments.
There are two basic components to the NTT framework:
Managers handle rate limiting, message attestation, and handle the token and transceivers. Each NttManager
corresponds to a single token but can control multiple transceivers. Key functions include:
Transceivers are responsible for facilitating NTT transfers, encoding, sending, receiving, and decoding messages across chains. They can be defined independently of the Wormhole core and support any verification mechanism on the backend. Key functions include:
In more detail, the EVM message lifecycle looks as follows:
The events emitted during the lifecycle are:
NTT offers full customization across its security stack. This flexibility extends to cross-chain supply management, where NTT supports both a burn-and-mint mechanism and a hub-and-spoke model.
In the hub and spoke model, tokens are locked on a central hub chain and minted on destination spoke chains. This model maintains the total supply on the hub chain and is backward-compatible with any existing token deployment.
The burn and mint model involves burning tokens on the source chain and minting them on the destination chain. This model is suited for new token deployments or projects willing to upgrade existing contracts.
Aside from modifiable supply management mechanics, the NTT framework also allows configurable per-chain rate limits for sending and receiving token transfers. Integrators can manage these limits through their own governance processes. Transfers that exceed rate limits can be queued and released after the set rate limit duration has expired.
To mitigate issues where frequent transfers could exhaust capacity, outbound transfers can cancel inbound rate limits on the source chain, and vice versa, refilling the respective limits.
Additionally, Wormhole’s NTT framework provides access control features and distinct roles:
Separating the Owner and Pauser roles allows protocols to react swiftly to potential risks, bypassing time-consuming processes in emergencies.
Finally, the Global Accountant is a defense-in-depth security feature that performs integrity checks on every token transfer, ensuring that there cannot be more tokens burned and transferred out of a chain than were ever minted. It is enforced by the Wormhole Guardians who will not attest to a transfer if it violates checks.
Wormhole's Native Token Transfers (NTT) framework offers a comprehensive and flexible solution for transferring tokens across blockchains. With features like advanced rate limiting, Global Accountant, and customizable transceivers, NTT provides integrators with the tools needed to ensure secure, efficient, and flexible token transfers.
Whether using the hub and spoke model or the burn and mint model, NTT supports a wide range of token deployment scenarios, making it a market-leading choice for multichain token management.
Integrators should implement governance mechanisms to manage the addition and removal of transceivers and to upgrade contracts using proxy patterns. Governance processes can be submitted directly to the corresponding contract on-chain to ensure security and adaptability.
NTT supports custom message verification in addition to Wormhole Guardian message verification. Custom verifiers can be protocol-specific or provided by other third-party attesters, allowing for enhanced security and transaction integrity.
Putting the pieces together, a customized NTT integration could look like this:
For more details, make sure to check the newly released NTT documentation.
Wormhole is the leading interoperability platform that powers multichain applications and bridges at scale. Wormhole provides developers access to liquidity and users on over 30 of the leading blockchain networks, enabling use cases that span DeFi, NFTs, governance, and more.
The wider Wormhole network is trusted and used by teams like Circle and Uniswap. To date, the platform has facilitated the transfer of over 40 billion dollars through over 1 billion cross-chain messages. To learn more about Wormhole, follow on Twitter, join the Discord, or read the blog.