Skip to content

Add DID Card Minting Function with Custom Event Logging#12

Open
mhraju069 wants to merge 5 commits intoAdamur-Tribe:mainfrom
mhraju069:contribute
Open

Add DID Card Minting Function with Custom Event Logging#12
mhraju069 wants to merge 5 commits intoAdamur-Tribe:mainfrom
mhraju069:contribute

Conversation

@mhraju069
Copy link

Summary

This PR adds a Mint function that allows users to mint DID Cards for employees. It also includes a mintLog event that logs the sender, custom message,name,Id and timestamp.

Changes Introduced

  • Created Mint() function in Solidity
  • Added mintLog event to emit sender, message, name, and timestamp
  • Frontend integrated with the contract using ethers.js
    • Connected wallet via MetaMask
    • Set up contract instance
    • Placeholder for event listening or transaction response

Why?

To enable users to mint identity cards on-chain with clear audit logs for transparency and traceability.

Next Steps

  • Integrate UI form for user inputs (name)
  • Listen for mintLog events and display in UI
  • Add verification and access control
  • show candidates data in ui

Let me know if this needs to be customized further (e.g. includes frontend, test cases, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant