aptos-labs / petra-wallet-types

A typescript types package for the Petra wallet's dapp interface.
Apache License 2.0
5 stars 3 forks source link

SignResponse type #3

Open rsrbk opened 2 years ago

rsrbk commented 2 years ago

Hi everyone! I’m doing dapps support implementation for Trust Wallet and got a bit confused about this type: https://github.com/aptos-labs/petra-wallet-types/blob/1b7ee21d522a7f47b8389b573b55d55c5a405e8f/index.d.ts#L51-L53

I’m not super strong in ts, but it looks like the returned type has to be a json with both key and values as numbers? This looks a bit different from what is normally being sent to RPC where the keys are strings: https://fullnode.devnet.aptoslabs.com/v1/spec#/operations/submit_transaction

rsrbk commented 2 years ago

Also do you have any (test) dapp that requests to sign arbitrary message? https://aptos.dev/guides/building-your-own-wallet/#signmessagepayload-signmessagepayload