Tutorial • Other

Basic MAM Sample


Masked Authenticated Messaging with mam.node.js wrapper.

The following code provides simple examples on how to broadcast data through the Tangle using MAM. In the examples folder you will find a file to send a message (publishPublicStart.js) and another to receive it by using the Root provided after the sending is done (fetchAsync.js). The code was taken from http://www.iotameetup.nl/2nd-iota-meetup-18-12-2017-amsterdam/ (Thanks Harm van den Brink!). Both files require minor edits as described on the comments