0

This https://blog.iota.org/introducing-masked-authenticated-messaging-e55c1822d50e says that any channel can be splitting.

Also this https://medium.com/coinmonks/iota-mam-eloquently-explained-d7505863b413 says that you can fork channel.

I want to make it look like this channel: enter image description here

I have a question, how do I do this?

I tried to do this:

  1. I generate first root:
const Mam = require('mam.client.js');
const mamState = Mam.init(provider, 'seed');
mamState.channel.count = 1;
mamState.channel.next_count = 2;
mamState.channel.start = 0;
mamState.channel.index = 0;

const message = Mam.create(mamState, asciiToTrytes('hello'));
console.log(message);

I got ROOT: FXARNUTEKJOESHZEVKTKIMZIAMZXGATZHYZKZIZVC9WVKEZRBDOETXCFPOZIOTPECKSIIOKEJAQLBKZZS

and next_root: LJNTSVRRTKPVMYCIZQLI99CWQOJECA9WUYMOHPNXSWBAMOTHLSZGUYAMUKHAR9E9NWUNDCFBRHCYIUQFN

  1. Next, I'm trying to split the next message.
    mamState.channel.count = 2;
    mamState.channel.next_count = 1;
    mamState.channel.start = 1;
    mamState.channel.index = 0; // i try change index  to 0 or 1 but I don't get different roots
    

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.