Account Actor
The account actor is responsible for user account. If you want to call these methods in your smart contracts, you need to specify method number of that method you want to invoke. Please refer the each method for its method number.
AuthenticateMessage
function authenticateMessage(CommonTypes.FilActorId target, AccountTypes.AuthenticateMessageParams memory params) internal returns (bool) {}
Authenticates whether the provided signature is valid for the provided message.
uint AuthenticateMessageMethodNum = 2643134072.
Params:
FilActorIdFilActorId - account actor id to interact withstructAuthenticateMessageParamsbytesSignature - it should be a raw byte of signature, NOT a serialized signature object with a signatureType.bytesMessage - The message which is signed by the corresponding account address.
Results:
boolwhether the signature is valid or not.