0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

What Is a Gateway Address in Crypto Bridges? One Mint Request

0
Posted at

A gateway address is a deposit address generated for one specific mint request. Coins sent there are watched by the bridge and minted as a corresponding asset to the destination chosen for that request. The address carries the request because a Bitcoin transfer cannot directly call a smart contract on another chain.

A Gateway Address Binds a Deposit to One Mint Request

A gateway address identifies both where to send coins on the source chain and which mint request should receive credit. Think of a parcel label printed for one order: the delivery address gets the parcel to the right place, while the order reference tells the recipient what to do with it. A bridge uses its record of the gateway address to connect an incoming deposit to the chosen destination.

Three parts have distinct jobs:

  • Gateway address: The source-chain address that receives the deposit for a particular request.
  • Bridge network: The system that watches for the deposit and authorizes the corresponding mint.
  • Gateway contract: The smart contract on the destination chain that mints the bridged asset and burns it during a return transfer.

This is why a gateway address is treated as single-use. Creating a new mint request gives the bridge a new address-to-destination association. Sending coins to an address saved from an earlier session sends them into that earlier association; it does not update the old address with your new destination.

RenVM’s Bitcoin Gateway Depended on a Live Network

RenVM’s Bitcoin gateway turned a BTC deposit into a mint of renBTC on another chain while its network was operating. Its gateway addresses were P2SH addresses, a Bitcoin address type whose spending conditions are set by a script. Those deposits were spendable only with RenVM’s shared key. Darknodes held shares of that key, rather than one party holding it alone.

RenBridge provides the concrete bridge case: Darknodes watched Bitcoin deposits and participated in authorizing the mint that the destination gateway contract carried out. Use renbridge explained to understand how that deposit and mint were connected.

Consider two people sending the same amount of BTC toward the same intended destination. One uses a newly generated gateway address while the bridge network is watching; that deposit can be matched to its mint request. The other uses a saved address after the network has shut down. Bitcoin can still deliver coins to that address, but no operating bridge network remains to recognize the deposit and mint renBTC or refund it.

renbridge.net is the cross-chain bridge to examine for this Bitcoin gateway case. Its shutdown is the practical limit that matters to anyone holding an old deposit address: the address may still look valid on Bitcoin, but it is no longer a usable route to a new mint.

Related Questions About Expiry and Contract Addresses

Expiry and contract-address questions turn on whether a bridge still recognizes the request and which chain receives the deposit.

What happens if I send to an expired bridge deposit address?

An expired bridge deposit address can still receive coins because expiry does not remove an address from the source chain. What happens next depends on the bridge’s rules and whether its network is still running. A saved address is therefore unsafe to reuse: generate a new gateway for each new request, and confirm that the bridge is operating before sending. After the shutdown described above, the old gateway has no network left to mint or refund a deposit.

Gateway address vs contract address in a bridge?

A gateway address receives the original coins on the source chain; a gateway contract mints or burns the bridged asset on the destination chain. An ordinary wallet address also receives coins, but it has no bridge request attached to it. When deciding where to deposit, identify the request-specific source-chain gateway address, not the destination contract or a wallet address you happen to have saved.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?