Function: initForSmartAccount(uint256 _pubKeyX, uint256 _pubKeyY, string _keyId)
The function takes the public keys (_pubKeyX and _pubKeyY) generated by decoding the data from the passkey. The msg.sender has the capability to establish their public keys just once and is unable to make any modifications subsequently.
Inputs
_pubKeyXConstraints: No checks.
Impact: The x-coordinate of the public key, which will be used to verify the signature.
_pubKeyYConstraints: No checks.
Impact: The y-coordinate of the public key, which will be used to verify the signature.
_keyIdConstraints: No checks.
Impact: The
keyIdof the smart account.
Branches and code coverage (including function calls)
Negative behavior
_pubKeyXis zero._pubKeyYis zero.Modify already initiated public keys.