l3wi / mam.client.js

Masked Authentication Messaging wrapper for Javascript (Browser and Node)
GNU General Public License v3.0
15 stars 51 forks source link

added function to set external iota library. #2

Open peterwilli opened 6 years ago

peterwilli commented 6 years ago

Currently the only way to link a working iota library is by using init. This is especially difficult if you're persisting and loading the state of the mam channel, as you would have to call init again for no reason (and waste time by letting mam generate a channel you're not going to use anyway, since you have the state at hand)

By giving a method to externally set the iota library without having to init, you can avoid this and load the state directly.