SCT signature verification, encode/decode and accessor functions

I would write "< 0" instead of "== -1".