Commun Platform Docs(β)
  • About Commun Platform
    • What is Commun Platform
    • How do I receive PoV
    • What can I do with the spot device
    • How To Use COMMUN App for Visitor
  • Ecosystem
  • Platform Architecture
    • Overview
    • Register Spot
    • How to mint a PoV
    • About VisitorRegistry
    • How to change the PoV delivered by a spot device
    • PoV verify System
    • Spot Device
      • NFC Card
      • Bluetooth Device
      • Wireless LAN
    • Spot Signature
      • Visitor
      • Event ID
  • Builders Guides
    • For Spot Owner
      • Add Proof of Visit
    • For Visitor
      • Proxy Mint
    • Subgraph
Powered by GitBook
On this page
  • mint by visitors themselves
  • Flow
  • Proxy mint
  1. Platform Architecture

How to mint a PoV

PreviousRegister SpotNextAbout VisitorRegistry

Last updated 2 years ago

Visitors can mint proof of visit at any time at their discretion in exchange for a spot signature received from the spot device. Basically, visitors need to mint it themselves, but proxy minting and disposable wallet is also possible to improve UI/UX. See for more details.

mint by visitors themselves

Flow

  1. The visitor calls VisitedBy::mint() with a spot signature. VisitedBy treats msg.sender as the recipient of the PoV.

  2. SpotVerifier::verify() called by VisitedBy::mint() returns the EOA recovered from the signature.

  3. The visitor's EOA is resolved in the VisitorRegistry.

  4. If the visitor is not registered in the VisitorRegistry, the address as it is is used.

  5. If the EOA just resolved by SpotVerifier was registered in SpotResistry, then SpotResolver's address is returned by SpotResistry. If it is not registered, 0x0 is returned.

  6. Then, SpotResolver::mint() is called.

  7. Finally, SpotResolver calls PoV::mint() according to PoV ID, and you can receive PoV.

Proxy mint

Soon...

About VisitorRegistry