binarysign #29
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "binarysign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding binary signatures to GajuDesk's GRIDS implementation.
"message" type signatures in GRIDS operate over strings by converting them to binary data and then doing a little dance around a fixed salt (for no real reason), hashing the resulting binary, signing it and returning the signature. The verification procedure builds up to the same hash and then checks the signature over that hash.
"binary" type signatures are a bit more simple. They require that the data in the GRIDS JSON message be encoded as base64. This data is decoded from base64 to a binary, then a fixed salt is prepended, the resulting binary is hashed, and the signature is returned. Verification involves doing the same process, starting from the base64 encoded binary in the GRIDS message, then building up to the same hash and then verifying the signature over that hash.
Hakuzaru exposes the binary level operations rather than concerning itself with the base64 stuff, as that is really a serialization issue and not fundamental to the core operations.