LedgerHQ / app-near

Ledger repo for Near app
MIT License
11 stars 9 forks source link

Meta-transactions support #28

Open frol opened 11 months ago

frol commented 11 months ago

NEAR Protocol added a new feature to support meta-transactions natively, but Ledger App does not support signing DelegateAction.

dj8yfo commented 11 months ago

planning to work on this in a ~nearest future~ rust version of this app, which can be discussed in https://t.me/NEAR_Tools_Community_Group

frol commented 10 months ago

~@dj8yfo It seems that there is a PR implementing Meta-transactions support: https://github.com/LedgerHQ/app-near/pull/30~ My bad, it is signMessage NEP, not a meta-transaction one

lostpebble commented 8 months ago

We have just implemented Ledger in Meteor Wallet (on staging, will be in production soon). Meta Transactions and signMessage are two functions that are sorely missing at the moment on Ledger. Hope we can get this implemented soon.

Any attempt to use meta transactions are met with a Transport Error.

dj8yfo commented 8 months ago

@lostpebble , do you only need ability to form Signature for DelegateAction?

Or do you also need ability to sign full transaction where there's one Action which is SignedDelegateAction? We consider this second case unlikely to be typical, but if you have some specific inputs, please share.

lostpebble commented 7 months ago

@dj8yfo yea I can't see where we might encounter the second case- as this is generally something have set up as a relayer server which will be using local private keys instead of Ledger. Can't imagine there's many cases where a Ledger would be the delegating signer.

The main thing is that our users can sign a DelegateAction which we can then sign as a full transaction and relay for them.