jwkFromSharedKey function
Converts a shared key to a JWK (JSON Web Key) representation. Returns the JWK.
Implementation
Map<String, dynamic> jwkFromSharedKey(List<int> sharedKey) {
final jwk = {
"kty": "oct",
"k": base64Url.encode(sharedKey),
"alg": "A256GCM",
};
return jwk;
}