Artem Tokarev
Artem Tokarev
It seems like [`DecodingKey::from_ed_der`](https://docs.rs/jsonwebtoken/latest/jsonwebtoken/struct.DecodingKey.html#method.from_ed_der) function actually expects raw 32 bytes public key, which ring's [`Ed25519KeyPair::public_key`](https://docs.rs/ring/latest/ring/signature/struct.Ed25519KeyPair.html#method.public_key) returns. Also running `openssl asn1parse -inform der -in file-with-pubkey` shows again that these 32 bytes...
Currently to locally pin a future unsafe [`std::pin::Pin::new_unchecked`](https://doc.rust-lang.org/std/pin/struct.Pin.html#method.new_unchecked) is being used. This PR replaces that unsafe block with [`std::pin::pin!`](https://doc.rust-lang.org/std/pin/macro.pin.html) macro introduced in [Rust 1.68](https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1680-2023-03-09) release.