parse

suspend fun parse(document: String, verify: Boolean = true): RevocationList

Parse a RevInfo document, verifying each list it can.

Parameters

verify

check each list's signature; a list that fails is rejected outright rather than being kept unauthenticated

Throws

if the document is not a RevInfo, or a list fails verification


suspend fun parse(document: ByteArray, verify: Boolean = true): RevocationList

Parse a RevInfo document from bytes, stripping a UTF-8 byte-order mark.