Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.08 KB

wtf.md

File metadata and controls

25 lines (18 loc) · 1.08 KB

About

The EXM contract below is an example implementation of a contract that uses Massa.net for contract's caller authentication (action.caller), empowered by massa-auth atom of massa molecule.

Contract

Prerequisites

  • EXM SDK
npm i -g @execution-machine/sdk

Iteracting with the contract

To register a name in the contract example, you have first to sign with your wallet the message used for verification in the contract's example which is hello world

signature and caller (publicKey) should be both passed under base58 encoding format.

EXM CLI

exm function:write EDzDQDgaStQEGmuDH9X1DxQGY5o7F11Jyj4AYSFL9MI --input '{"function": "register", "name": "buildooor", "signature": "$MASSA_SIGNATURE", "caller": "$MASSA_PUBLIC_KEY"}' --token EXM_TOKEN_ID