Lots of mailbox messages (i.e. the bytes in Messages.Body) are JSON encoded. The Magic Wormhole protocol documentation doesn't insist that this is the case, but all extant messages are JSON encoded.
There are some ways we can make this more convenient:
Probably other ways too.
Lots of mailbox messages (i.e. the bytes in
Messages.Body) are JSON encoded. The Magic Wormhole protocol documentation doesn't insist that this is the case, but all extant messages are JSON encoded.There are some ways we can make this more convenient:
A pair of
ToBodyandFromBodytypeclassessendEncryptedJSONandreceiveEncryptedJSONhelpersProbably other ways too.