mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Add Affirmation Graph contract

Open kieransimkin opened this issue 1 year ago • 4 comments

This adds the Affirmation Graph contract to the contracts module. Affirmation graph is a CIP I've written which defines a mechanism for building true decentralized identity and trust without KYC.

In order to test this I also had to add the ability for the embedded wallet to sign with its stake key as well as its payment key.

The CIP is currently pending its number

As with the CIP - this is a first draft, and I will likely be making further additions and changes, so you probably just want to leave this PR open for now - I will definitely add more comments and documentation before it's ready for merge.

Affect components

Please indicate which part of the Mesh Repo

  • [ ] @meshsdk/common
  • [X] @meshsdk/contract
  • [ ] @meshsdk/core
  • [ ] @meshsdk/core-csl
  • [ ] @meshsdk/core-cst
  • [ ] @meshsdk/provider
  • [ ] @meshsdk/react
  • [ ] @meshsdk/transaction
  • [X] @meshsdk/wallet
  • [ ] Mesh playground (i.e. https://meshjs.dev/)
  • [ ] Mesh CLI

Type of Change

Please mark the relevant option(s) for your pull request:

  • [X] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] Code refactoring (improving code quality without changing its behavior)
  • [ ] Documentation update (adding or updating documentation related to the project)

kieransimkin avatar Nov 05 '24 03:11 kieransimkin

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mesh-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 3:50am

vercel[bot] avatar Nov 05 '24 03:11 vercel[bot]

@kieransimkin is attempting to deploy a commit to the MeshJS Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 05 '24 03:11 vercel[bot]

Thank you for your contribution! In order to add a mesh contract, a few more things have to be in place:

  • [ ] The onchain code (aiken-workspace that compiles the plutus.json)
  • [ ] Hosted documentation - https://github.com/MeshJS/mesh/tree/main/apps/playground/src/pages/smart-contracts

If you want to proceed merging, please also build with those materials, we would the review and evaluate if that's understandable by community to put in the library

HinsonSIDAN avatar Nov 05 '24 15:11 HinsonSIDAN

@kieransimkin very cool CIP. Follow up on the CIP discussion to check for further additions and changes. Once its finalized, we shall document it and educate why this exist, and how to use it.

jinglescode avatar Nov 15 '24 10:11 jinglescode

Close due to inactivity

HinsonSIDAN avatar Sep 02 '25 22:09 HinsonSIDAN