unisat-wallet / extension

The first open-source browser extension wallet for Bitcoin NFTs
Other
856 stars 334 forks source link

Nubit modular-indexer-light-sdk verification demo #196

Open ghost opened 4 months ago

ghost commented 4 months ago

Hi UniSat folks! I'm the developer from the Nubit team. We extended the functionalities of the UniSat Wallet extension (version v1.3.0) via integrating Nubit modular-indexer-light-sdk to verify the balances.

We include a demo in this PR, and here are some screen recordings for showcasing.

By clicking the Verify button, we fetch the verified checkpoints from official Nubit Modular Indexer (Committee) instances and do a double verification on the balance proofs. Once it's successful, we display the proofs on the tooltip.

https://github.com/unisat-wallet/extension/assets/167436566/aedb320d-740e-486a-bd80-7212f54b5cbf

Upon malicious checkpoints, the tooltip would list all the commitments of the checkpoints and the SDK would try doing a reconstruction using the last consistent checkpoint.

https://github.com/unisat-wallet/extension/assets/167436566/30feb3ad-d575-491a-9479-cc553430749b

We sincerely look forward to your thoughts and ideas!