ssbc / go-ssb

Go implementation of ssb (work in progress!)
https://scuttlebutt.nz
160 stars 26 forks source link

What's the difference between the publish log and the receive log? #307

Open KyleMaas opened 1 year ago

KyleMaas commented 1 year ago

Unclear on the difference in intended purpose between them. If someone could elaborate please, that would be helpful.

decentral1se commented 1 year ago

@cryptix @keks :crossed_fingers: :point_up:

keks commented 1 year ago

From my recollection, the receiveLog is where all the message are actually stored. The publishLog is more or less a thin wrapper that takes a message content value, builds the rest of the message (sequence number, signature, etc) and puts it onto the receive log. Does that help?

KyleMaas commented 1 year ago

@keks I think so. I'll have to read through the code again with that in mind. Thanks!