Skip to content
Snippets Groups Projects
Commit 7f4f1727 authored by lunfardo314's avatar lunfardo314
Browse files

minor bug fix

parent 0b154951
Branches
Tags
No related merge requests found
......@@ -122,6 +122,7 @@ func BLSSignatureFromBytes(data []byte) (result *blsSignature, err error, consum
}
if data[0] != address.VERSION_BLS {
err = fmt.Errorf("wrong version byte, expected %d", address.VERSION_BLS)
return
}
result = &blsSignature{}
copy(result[:BLS_FULL_SIGNATURE_SIZE], data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment