+ final byte[] publicKeyBytes;
+ try {
+ publicKeyBytes = Base64.getDecoder().decode(publicKeyEncoded);
+ } catch (IllegalArgumentException e) {
+ throw new RuntimeException("Invalid device link uri", e);
+ }
+ ECPublicKey deviceKey = Curve.decodePoint(publicKeyBytes, 0);