Here is what i whipped up: margaret-dump.go
$ go run margaret-dump.go ali/log
Message00: %ULwTkUWOON5exNLOIRrWvgdzr1zp468GO/jwwc8M1xM=.sha256
Author: @QbIo3kW+NGR8+WeOA885s4nE1myVgLCevPnHJ7SRe84=.ed25519
Content: {
"type": "contact",
"contact": "@ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1",
"following": true,
"blocking": false
}
Not a gabby message, skipping...
Message01: %2vSMZwV/t2ZsmSW7RhOlYkcZIadNys0d1Ds7sOHJzuw=.ggmsg-v1
Author: @ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1
Content: {"type":"contact","contact":"@QbIo3kW+NGR8+WeOA885s4nE1myVgLCevPnHJ7SRe84=.ed25519","following":true,"blocking":false}
evt bytes: 85f6d9041a5821016511af7b2caf12836422129e4388b92933b43cc96bea37386413cd97ec4c8317011a5e037ac883d9041a582103d5b6b1d5e9d3bb3e6d9296243a4122f9eeddd94ee32b52178e4f714e4c0d0808187701
Message02: %Gs0JO2iZb5o85fyY6M7BZhreZh2diCYgVMcMUqzNMrM=.ggmsg-v1
Author: @ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1
Content: {"test":0}
evt bytes: 85d9041a582102daf48c67057fb7666c9925bb4613a562471921a74dcacd1dd43b3bb0e1c9ceecd9041a5821016511af7b2caf12836422129e4388b92933b43cc96bea37386413cd97ec4c8317021a5e037ac883d9041a582103d0e907167db37c1164d2035c0eaa99dbf63209f3c903dcd96a54900db2b0dc6c0b01
$ go run margaret-dump.go bob/log
Message00: %2vSMZwV/t2ZsmSW7RhOlYkcZIadNys0d1Ds7sOHJzuw=.ggmsg-v1
Author: @ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1
Content: {"type":"contact","contact":"@QbIo3kW+NGR8+WeOA885s4nE1myVgLCevPnHJ7SRe84=.ed25519","following":true,"blocking":false}
evt bytes: 85f6d9041a5821016511af7b2caf12836422129e4388b92933b43cc96bea37386413cd97ec4c8317011a5e037ac883d9041a582103d5b6b1d5e9d3bb3e6d9296243a4122f9eeddd94ee32b52178e4f714e4c0d0808187701
Message01: %Gs0JO2iZb5o85fyY6M7BZhreZh2diCYgVMcMUqzNMrM=.ggmsg-v1
Author: @ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1
Content: {"test":0}
evt bytes: 85d9041a582102daf48c67057fb7666c9925bb4613a562471921a74dcacd1dd43b3bb0e1c9ceecd9041a5821016511af7b2caf12836422129e4388b92933b43cc96bea37386413cd97ec4c8317021a5e037ac883d9041a582103d0e907167db37c1164d2035c0eaa99dbf63209f3c903dcd96a54900db2b0dc6c0b01
Message02: %ELXSS7J4KCAvSxbI2tjBnB4/iT5OAVyZwTa9B1DOjrk=.ggmsg-v1
Author: @ZRGveyyvEoNkIhKeQ4i5KTO0PMlr6jc4ZBPNl+xMgxc=.ggfeed-v1
Content: {"test":1}
evt bytes: 85d9041a5821021acd093b68996f9a3ce5fc98e8cec1661ade661d9d88262054c70c52accd32b3d9041a5821016511af7b2caf12836422129e4388b92933b43cc96bea37386413cd97ec4c8317031a5e037ac883d9041a58210376ee56ae9188eecf6269efd1d512d2fb3711524325959737507ea87047355a640b01
again, if you throw the evtBytes
into the diag tools you get a nice run down of what is what:
85 # array(5)
D9 041A # tag(1050)
58 21 # bytes(33)
021ACD093B68996F9A3CE5FC98E8CEC1661ADE661D9D88262054C70C52ACCD32B3
D9 041A # tag(1050)
58 21 # bytes(33)
016511AF7B2CAF12836422129E4388B92933B43CC96BEA37386413CD97EC4C8317
03 # unsigned(3)
1A 5E037AC8 # unsigned(1577286344)
83 # array(3)
D9 041A # tag(1050)
58 21 # bytes(33)
0376EE56AE9188EECF6269EFD1D512D2FB3711524325959737507EA87047355A64
0B # unsigned(11)
01 # unsigned(1)