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
_pubKeyX
Constraints: No checks.
Impact: The x-coordinate of the public key, which will be used to verify the signature.
_pubKeyY
Constraints: No checks.
Impact: The y-coordinate of the public key, which will be used to verify the signature.
_keyId
Constraints: No checks.
Impact: The
keyId
of the smart account.
Branches and code coverage (including function calls)
Negative behavior
_pubKeyX
is zero._pubKeyY
is zero.Modify already initiated public keys.