Web frontend is used for adding a controller with specific permissions to the key manager of the universal profile allowing better ux within the phygital app. Furthermore it is using Log-In With UP to send a signature to the Backend which in exchange sends a JWT (valid for 24 hours) to create an App Login QR Code.
- Testnet: https://phygital.tuszy.com
Only supports the Universal Profile Extension - no Metamask or any other Web3 wallet. For this reason, you cannot use a mobile phone at the time of writing, you must have a computer to log in with your Universal Profile and set the required permissions and create the App Login QR Code.
Allows the user to login into the app intuitively by scanning a QR code which contains all the necessary authentication data.
ethereum:<up_address>@<chain_id>:<jwt>
- Login with Universal Profile
- Set Permissions
- Create App Login QR Code
- Scan App Login QR Code with Phygital app
- Done
Controller: 0xAc11803507C05A21daAF9D354F7100B1dC9CD590
- AddressPermissions:Permissions
- call
- relay call
- set data
- AddressPermissions:AllowedCalls
- restrictionOperations: call
- allowedAddress: all contract addresses (0xffffffffffffffffffffffffffffffffffffffff)
- allowedInterfaceId: Interface id of PhygitalAsset contract (see _INTERFACEID_PHYGITAL_ASSET)
- allowedFunction: selectors of
- function mint(address phygitalAddress, uint phygitalIndex, bytes memory phygitalSignature, bytes32[] memory merkleProofOfCollection, bool force)
- function verifyOwnershipAfterTransfer(address phygitalAddress, bytes memory phygitalSignature)
- function transfer(address from, address to, bytes32 tokenId, bool force, bytes memory data)
- AddressPermissions:AllowedERC725YDataKeys
- LSP12IssuedAssets[] - ERC725Y Key Prefix: 0x7c8c3416d6cda87cd42c71ea1843df28
- LSP12IssuedAssetsMap - ERC725Y Key Prefix: 0x74ac2555c10b9349e78f0000