If you know what you're doing and have a Ed DER encoded public key, use this.
(der: &[u8])
| 194 | |
| 195 | /// If you know what you're doing and have a Ed DER encoded public key, use this. |
| 196 | pub fn from_ed_der(der: &[u8]) -> Self { |
| 197 | DecodingKey { |
| 198 | family: AlgorithmFamily::Ed, |
| 199 | kind: DecodingKeyKind::SecretOrDer(der.to_vec()), |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | /// From x part (base64 encoded) of the JWK encoding |
| 204 | pub fn from_ed_components(x: &str) -> Result<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected