parse

abstract suspend fun parse(value: String): DidKey

The key value names, as far as this scheme can check it from outside. P256 is DidKey.parse.

A key inside a received frame does not come through here: it decodes with DidKey's serializer, which checks its syntax only, and verify does the rest.

Throws

when value does not name a key this scheme accepts.