fabianbormann / cardano-peer-connect

This library aims to provide simple interfaces to implement CIP-0045 for dApps and wallets
Apache License 2.0
11 stars 4 forks source link

Feature request - Add experimental #20

Closed marcuspuchalla closed 1 year ago

marcuspuchalla commented 1 year ago

As specified in CIP30 we should add injecting the experimental API that a wallet can provide.

This would also make the implementation on par with the normal dApp Web bridge.

marcuspuchalla commented 1 year ago

It was more work to get it working as I thought, but here is the PR. https://github.com/fabianbormann/cardano-peer-connect/pull/22 😄

The commit and the newly created classes have a lot of text explaining what is happening.

Basically, I create a blueprint of the properties and functions that a wallet wants to inject and convert into a format easily shared between different systems. The DApp can then use this blueprint to interact with the wallet as if it had direct access.

All new functions can be already used with the demo implementation, see https://github.com/fabianbormann/cip-0045-demo-implementation/pull/2

fabianbormann commented 1 year ago

Thx @marcuspuchalla the PR has been reviewed and merged 👍