dm3 icon indicating copy to clipboard operation
dm3 copied to clipboard

Using dm3 with Bitcoin L2: Hiro Stacks

Open Muhammad-Altabba opened this issue 1 year ago • 3 comments

As discussed, I hope to use dm3 on Stacks (formerly known as Blockstack): https://www.stacks.co/

It would be nice if you could point out the places where the code needs to be changed. I might contribute to the changes by opening some PRs.

Here are some helpful articles:

  • How to Authenticate Your Users with Leather Wallet (formerly called Hiro Wallet): https://www.hiro.so/blog/how-to-authenticate-your-users
  • How Arbitrary Message Signing Works in Leather Wallet: https://www.hiro.so/blog/how-arbitrary-message-signing-works-in-the-hiro-wallet

Thanks & Best Regards,

Muhammad-Altabba avatar Sep 25 '23 21:09 Muhammad-Altabba

@hai-ko can you, please, answer Muhammads questions?

steffenkux avatar Sep 29 '23 09:09 steffenkux

The way I would choose to use dm3 with non-EVM chains is by writing a CCIP resolver (https://eips.ethereum.org/EIPS/eip-3668). The resolver contract specifies where the data should be fetched and how the data is verified. The data could be anywhere on an L2, in a database, or on another chain. We already wrote resolvers for optimism (https://github.com/corpus-io/Ccip-Resolver) and gnosis chain. This way you don't need to change the dm3 code to be able to use dm3 with Stacks.

hai-ko avatar Nov 15 '23 20:11 hai-ko

This sounds great @hai-ko , I will check that. And with just a CCIP resolver, how this be even enough for the wallet addresses and message signing that is different in a non-EVM chain? Many thanks

Muhammad-Altabba avatar Feb 01 '24 15:02 Muhammad-Altabba