Hello everybody

To analyze the FedOne federation protocol a little bit more in detail,
I have generated wireshark-plugins for the messages defined in the
federation.protodevel file.
With these wireshark plugins, I tried to analyze the base64 encoded
CDATA field. An example is given below for the exchange of a
ProtocolAppliedWaveletDelta message in a federated scenario (the hex
values for the hash-values and signature bytes are changed to base64
and added manually).

While analyzing the trace the following questions arise:

1. I think, I understand the structures in operation [1] and operation
[2] but I don’t understand why operation [0] is used in the
ProtocolAppliedWaveletDelta message. So what is the reason for sending
operation [0] with an empty (?) document_operation?

2. How are the signature bytes within signature [0] calculated. I
didn’t find any detail algorithm for that calculation in the specs.
Can somebody give me a hint?

Thanxs in advance!

Regards

jowi

---- example wireshark trace message ---


  <message>
        type="normal"
        from="wave.alice.org"
        to="wave.bob.org"
        id="Pr2XZsFY2fwAAAAAAAAABg=="
        <request/>
            xmlns="urn:xmpp:receipts"
        <event>
            xmlns="http://jabber.org/protocol/pubsub#event";
            <items>
                <item>
                    <wavelet-update>
                        xmlns="http://waveprotocol.org/protocol/0.2/
waveserver"
                        wavelet-name="wave://alice.org/w
+1di28cf3qaqhvA/conv+root"
                        <applied-delta>
                         (Comment: ProtocolAppliedWaveletDelta
message:)
                         signed_original_delta
                            delta
                               hashed_version
                                   version: 3
                                   history_hash:
3rbVBRWxFRI1DW3FF8DWakqDBoY=
                              author: [email protected]
                              operation[0]
                                   mutate_document
                                       document_id: b+14xxjhy4n8gzaB
                                       document_operation
                              operation[1]
                                   mutate_document
                                       document_id: b+14xxjhy4n8gzaB
                                       document_operation
                                          component[0]
                                             element_start
                                                  type: body
                                          component[1]
                                             element_start
                                                  type: line
                                          component[2]
                                             element_end: True
                                          component[3]
                                                 characters: Hi Bob
                                          component[4]
                                                 element_end: True
                               operation[2]
                                    mutate_document
                                        document_id: conversation
                                        document_operation
                                           component[0]
                                               retain_item_count: 1
                                           component[1]
                                               element_start
                                                    type: blip
                                                    attribute[0]
                                                        key: id
                                                        value: b
+14xxjhy4n8gzaB
                                          component[2]
                                               element_end: True
                                          component[3]
                                               retain_item_count: 1
                           signature[0]
                                 signature_bytes:
                                     nPDCYVWFS+VrQzyqP3pK0VRyaj1Rdlj1Vwq9onyz
                                     LTXi+FPQIvbtnoHW8nYf7WgioEFR9ZqwAe0UEcF0
                                     cZ8vwCWLi/E2fTtHZoAGplcGuEgOrMHxw1FI6GZK
                                     ettJ9HpWdJoxZaoqRSkSM03fz064Qp/mZhRM4Phj
                                     XGSLnz+yV04=
                                signer_id:
 
+B5TmutRg83KRo4M74M7ydVpqeyPFSewyB2PNRW3zEs=
                                signature_algorithm: 1 ( SHA1_RSA )
                           hashed_version_applied_at
                                     version: 3
                                     history_hash:
3rbVBRWxFRI1DW3FF8DWakqDBoY=
                           operations_applied: 3
                           application_timestamp: 1284728564792
                           </applied-delta>
                       </wavelet-update>
                   </item>
               </items>
           </event>
       </message>

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en.

Reply via email to