-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast Bridge #175
base: master
Are you sure you want to change the base?
Fast Bridge #175
Conversation
84d4049
to
ee4cc04
Compare
ee4cc04
to
a342e6c
Compare
51f8884
to
cefcb5c
Compare
|
||
The system comprises one or more liquidity providers (LPs), listed in an onchain marketplace. Interactions with LPs are intermediated using a dApp or a website. | ||
|
||
#### Liquidity Providers contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the Solidity interface for this.
e.g.
interface ILiquidityBridgeContract {
transferStatus(bytes32[]) return uint;
transferFunds(bytes32[]);
}
|
||
#### registerBtcTransfer() | ||
|
||
**Parameters**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the ABI signature for this method
IPs/RSKIP175.md
Outdated
- *byte[]* btcTxSerialized: Serialized Bitcoin transaction | ||
- *int* height: Block number where the transaction is present | ||
- *byte[]* pmtSerialized: Serialized partial merkle tree | ||
- *Sha256Hash* derivationArgumentsHash: A hash created from all the derivation arguments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- *Sha256Hash* derivationArgumentsHash: A hash created from all the derivation arguments | |
- *Sha256Hash* derivationArgumentsHash: A hash created from the derivation arguments |
It's not all the derivation arguments, only those not required by the Bridge
- If status obtained is **OK**, will check if Locking Cap value is surpassed: | ||
- If not surpassed, will transfer funds to Liquidity Bridge Contract | ||
- If surpassed, will refund Liquidity Provider | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there are a few missing steps.
- There should be validation to determine if the UTXO to the derive Fed was already registered.
- There should be a step to register the UTXO
|
||
### Federation Address Derivation | ||
|
||
The address derivation process will be carried out by creating a custom redeem script that will make a push of a 32 bytes hash created from the provided derivation arguments. That data is then dropped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add a clarification that this custom redeem script is executed in the same way to the standard one, allowing the same Federation members to sign the releases of these ad-hoc Federations.
4e201ee
to
2d70e2e
Compare
IPs/RSKIP175.md
Outdated
receiverAddress.transfer(msg.value); | ||
} | ||
|
||
The Solidity interface for this cotract must be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Solidity interface for this cotract must be: | |
The Solidity interface for this contract must be: |
IPs/RSKIP175.md
Outdated
|
||
interface ILiquidityBridgeContract { | ||
transferStatus(bytes32) return uint; | ||
transferFunds(bytes32) external payable; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transferFunds(bytes32) external payable; | |
transferFunds(bytes32) payable; |
78e207b
to
469c45a
Compare
469c45a
to
da83506
Compare
No description provided.