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
  • What is VisitorRegistry
  • How to use VisitorRegistry?
  1. Platform Architecture

About VisitorRegistry

What is VisitorRegistry

VisitorRegistry is a contract that enables the use of temporary EOAs. Normally, the PoV is minted to the EOA contained in the spot signature indicating the visitor, but if the visitor's EOA is registered in the VisitorRegistry, it is minted to the resulting EOA that is resolved in the VisitorRegistry. This generates an EOA for temporary use in the application, which can be used to obtain a spot signature and proof of visit. This means that you do not need to connect a Wallet such as Metamask to receive spot signatures and proof of visitation each time.

How to use VisitorRegistry?

VisitorRegistry ties the temporary EOA to the main Wallet, such as Metamask. VisitorRegistry::register() is used to tie the two together.

{
  "visitorRegisterPermit": {
    "visitor": "VISITOR_EOA",
    "owner": "OWNER_EOA",
    "nonce": 0,
    "deadline": UNIXTIME_AS_SEC
  },
  "visitorV": VISITOR_SIGNATURE_V,
  "visitorR": "VISITOR_SIGNATURE_R",
  "visitorS": "VISITOR_SIGNATURE_S",
  "ownerV": OWNER_SIGNATURE_V,
  "ownerR": "OWNER_SIGNATURE_R",
  "ownerS": "OWNER_SIGNATURE_S"
}  

VISITOR_SIGNATURE and OWNER_SIGNATURE are signatures over the hash received from VisitorRegistry::getTypedDataHash().

PreviousHow to mint a PoVNextHow to change the PoV delivered by a spot device

Last updated 2 years ago