Why is the wasm embedded in the note? Won't it be more efficient to store it in a blossom server? That way you can have the same wasm run with different parameters.

Replies (1)

The same WASM can run with different parameters regardless of where it is hosted. But whether to put it in the event body or on blossom I don't know what is best. I think having it on the note is good because it acts as a natural size limiter and is slightly simpler to implement, reduces errors, makes it easier to reason about, reduces the number of errors and moving pieces and dependencies. But I can also see the other side of the argument. It's a fine line to thread. For example: why wouldn't this note's content be put in a blossom server and the event be just a hash to it?
โ†‘