Marc Gravell
unread,Aug 3, 2008, 4:50:32 AM8/3/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Maybe this is a naïve solution, but couldn't you just have:
message SignedMessage {
required bytes signature = 1;
required bytes payload = 2;
}
any any standard hash algorithm on the bytes to generate the
signature? This also doesn't need any specific pb support - you just
serialize to a blob, hash the blob, and store the hash and blob in a
new message. Likewise to rehydrate, read the hash, read the blob,
validate the hash from the blob and then (if OK) deserialize the
payload.
Marc