 CHECK: @checkSigRaw
-- | Verify raw 'ByteString'.
checkSigRaw
    :: ProtocolMagic
    -> Maybe SignTag
    -> PublicKey
    -> ByteString
    -> Signature Raw
    -> Bool
checkSigRaw pm mbTag (PublicKey k) x (Signature s) = CC.verify k (tag <> x) s
  where
    tag = maybe mempty (signTag pm) mbTag

-- | Checks if certificate is valid, given issuer pk, delegate pk and ω.
ve
checkSigRaw
    :: ProtocolMagic
    -> Maybe SignTag
    -> PublicKey
    -> ByteString
    -> Signature Raw
    -> Bool
checkSigRaw pm mbTag (PublicKey k) x (Signature s) = CC.verify k (tag <> x) s
  where
    tag = maybe mempty (signTag pm) mbTag

-- | Checks if certificate is valid, given issuer pk, delegate pk and ω.
checkSigRaw pm mbTag (PublicKey k) x (Signature s) = CC.verify k (tag <> x) s
  where
    tag = maybe mempty (signTag pm) mbTag

-- | Checks if certificate is valid, given issuer pk, delegate pk and ω.