How to mint a PoV
Last updated
Last updated
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.
The visitor calls VisitedBy::mint()
with a spot signature. VisitedBy
treats msg.sender
as the recipient of the PoV
.
SpotVerifier::verify()
called by VisitedBy::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 in SpotResistry
, then SpotResolver's
address is returned by SpotResistry
. If it is not registered, 0x0 is returned.
Then, SpotResolver::mint()
is called.
Finally, SpotResolver
calls PoV::mint()
according to PoV ID
, and you can receive PoV
.
Soon...