How to mint a PoV

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 About VisitorRegistry for more details.
mint by visitors themselves
Flow
The visitor calls
VisitedBy::mint()
with a spot signature.VisitedBy
treatsmsg.sender
as the recipient of thePoV
.SpotVerifier::verify()
called byVisitedBy::mint()
returns the EOA recovered from the signature.The visitor's EOA is resolved in the
VisitorRegistry
.If the visitor is not registered in the
VisitorRegistry
, the address as it is is used.If the EOA just resolved by
SpotVerifier
was registered inSpotResistry
, thenSpotResolver's
address is returned bySpotResistry
. If it is not registered, 0x0 is returned.Then,
SpotResolver::mint()
is called.Finally,
SpotResolver
callsPoV::mint()
according toPoV ID
, and you can receivePoV
.
Proxy mint
Soon...
Last updated