Hello @MontyThibault, I have a few questions concerning the signature generation (layer 2, step 5):
i) The second argument of signature is payloadCase. Could you clarify what it is ? I cannot find it in the proto message (https://github.com/wlwanpan/bluzelle-go/blob/master/cproto/bluzelle.pb.go) or figure out the difference between payload and
ii) For step 5 (Convert this string to binary with ascii as the encoding): Did you mean convert to bytes / byte array, not binary correct?
hey @wlwanpan ! Maybe I can help out with your questions because I had to go through this with the C# client.
i) payloadCase indicates the type of payload. However, in your "deterministic string", you need to provide the value of it. For the C# client, i had to do a switch case.
So for example: if payload type = database_msg, then payloadcase in the string will be 10. For reference, have a look at https://github.com/bluzelle/swarmDB/blob/devel/proto/bluzelle.proto
ii) This would be byte array i believe but @MontyThibault can verify. In C#, I had to convert it to ByteString which was a google protobuf specific type. But it's essentially a sequence of immutable bytes (byte array i guess to put it simply)