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 have a question, how do I do this?
I tried to do this:
- 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
- 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