This commit updates the Metablock new function to use utf8 string when signing instead of the raw representation which is currently used.
The motivation for this change is that the verifying performed in Metablock::verify uses the utf8 string to generate the signature, and this can lead to a signature mismatch if the signatures are not created in the same manner.
This change also seems to be inline with the code in MetablockBuilder::sign, which also converts the raw bytes to utf8 before signing.
This commit updates the Metablock new function to use utf8 string when signing instead of the raw representation which is currently used.
The motivation for this change is that the verifying performed in
Metablock::verify
uses the utf8 string to generate the signature, and this can lead to a signature mismatch if the signatures are not created in the same manner.This change also seems to be inline with the code in
MetablockBuilder::sign
, which also converts the raw bytes to utf8 before signing.Signed-off-by: Daniel Bevenius daniel.bevenius@gmail.com