Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.15 KB

Account Actor.md

File metadata and controls

43 lines (24 loc) · 1.15 KB

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

func AuthenticateMessage(params AuthenticateMessage) EmptyValue ()

Authenticates whether the provided signature is valid for the provided message.

uint AuthenticateMessageMethodNum = 2643134072.

Params:

  • struct AuthenticateMessageParams

  • bytes AuthenticateMessageParamsSignature - it should be a raw byte of signature, NOT a serialized signature object with a signatureType.

  • bytes Message - The message which is signed by the corresponding account address.

Results:

  • struct EmptyValue.

UniversalReceiverHook

func AuthenticateMessage(params RawBytes) EmptyValue ()

Whenever the account receives transfers, this method will be invoked.

uint UniversalReceiverHookMethodNum = 3726118371.

Params:

  • bytes[] RawBytes - passes the bytes through how it is received.

Results:

  • struct EmptyValue - always success.