authenticationFromData function
Implementation
Authentication authenticationFromData(AuthenticationData auth) {
return auth.value.startsWith(KeyId.prefix())
? Authentication.keyId(KeyId.fromString(auth.value))
: Authentication.publicKey(PublicKey.fromString(auth.value));
}