privateKeyfromX25519Jwk function
Converts a X25519 JWK (JSON Web Key) to a X25519 private key. Returns the X25519 private key.
Implementation
List<int> privateKeyfromX25519Jwk(Map<String, dynamic> jwk) {
Base64Codec base64 = const Base64Codec();
final nomalizeBase64 = base64.normalize(jwk["d"]);
return base64Url.decode(nomalizeBase64);
}