-
Notifications
You must be signed in to change notification settings - Fork 6
Pallet XRPL #758
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
Pallet XRPL #758
Conversation
|
can we shorten the pallet to be just |
so, |
245f912 to
694c354
Compare
|
@zees-dev I'm guessing because we are using the ethereum address scheme they can't hold assets on their address in TRN? And if so does that mean they will only be able to access TRN via their FPass account? |
Since the public key can be mapped to both XRP address scheme and TRN address scheme, we can use it to derive the ethereum address. |
ad99ea0 to
5e1add0
Compare
…ls utilizing signed extras
surangap
left a comment
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.
nice work👏. added couple of comments for further improvements/discussion
… apply self_contained
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.
lgtm👍
|
I wonder if we should use |
JasonTulp
left a comment
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.
Nice work 🚀
Context
This PR introduces the XRPL transaction pallet (
pallet-xrpl-transaction) - which allows for the submission of signed XRPL transactions of theSignIntype by the XUMM mobile wallet to be submitted to the chain.The signed transaction must contain specific memo data of the
extrinsic- which encodes thechain_id,nonce,max_block_numberand a hash (blake256) of thescale_encoded_extrinsicto be dispatched by the mapped ethereum address (from the provided pub key in the signed transaction).The pallet only contains a single extrinsic
submit_encoded_xrpl_transactionthat is a self contained call - which means that the signed transaction is validated based on the data provided in the signed transaction itself.A signature must be provided in the
submit_encoded_xrpl_transactioncall (2nd param) in addition to the actual call itself (to be which is hashed and signed in the memo data); these parameters are validated against the provided encoded/signed XRPL transaction.Original RFC
Dependent PRs