You are reading content from Scuttlebutt
@andrestaltz %k9BmlQpqRPnmrb7snXNp+1LcIzMkj7KBvCRqV1Mt9GQ=.sha256
Re: %9xhR0i+YZ

Can I commit a message, get it's message key returned (to be applied within my next message) and then commit the next message all within one transaction?

@nanomonkey That's unfortunately not possible. The input to addTransaction is an array, and we only guarantee atomicity: either all of the messages in the array are written to disk, or none. The input would have to be a function, if you wanted to get the msg key from one of them to plug into the other. There's also no notion of rollback in these transactions.

Join Scuttlebutt now