fromEncodedSignerKey

fun fromEncodedSignerKey(encodedSignerKey: String): SignerKey

Creates a SignerKey from an encoded signer key string.

This method automatically detects the signer key type based on the encoded string format and creates the appropriate SignerKey instance.

Return

A new SignerKey instance

Parameters

encodedSignerKey

The StrKey-encoded signer key string

Throws

if encodedSignerKey is not a well-formed strkey of one of the four signer key forms. It is the only exception this function raises: a signed payload is checked against the framing it declares before any byte that framing names is read. A string written under the character a signed payload carries and as long as one is refused for the rule it broke; every other input is refused by naming itself.