Skip to content

Instantly share code, notes, and snippets.

@lewisdaly
Created May 15, 2018 01:00
Show Gist options
  • Save lewisdaly/c7937149d91d24fb4d5f0104820aa798 to your computer and use it in GitHub Desktop.
Save lewisdaly/c7937149d91d24fb4d5f0104820aa798 to your computer and use it in GitHub Desktop.
const IOTA = require('iota.lib.js');
const MAM = require('./lib/mam.client.js/lib/mam.client');
var iota = new IOTA({ provider: `https://testnet140.tangle.works` });
const five = require("johnny-five");
const board = new five.Board();
// Initialise MAM State - PUBLIC
var mamState = MAM.init(iota)
board.on("ready", () => {
console.log("mamState", mamState);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment