Exact public Ed25519 JWK encoding, decoding, and RFC 7638 thumbprints.
Summary
Functions
Decodes an exact public Ed25519 OKP JWK.
Encodes one raw 32-byte Ed25519 public key as the canonical public OKP JWK.
Returns the canonical base64url RFC 7638 thumbprint.
Returns the exact RFC 7638 public OKP thumbprint preimage.
Functions
@spec decode_public(binary(), BoundedAuthorityProtocol.V1.Bounds.t() | map()) :: {:ok, binary()} | {:error, :invalid}
Decodes an exact public Ed25519 OKP JWK.
@spec encode_public(binary(), BoundedAuthorityProtocol.V1.Bounds.t() | map()) :: {:ok, binary()} | {:error, :invalid}
Encodes one raw 32-byte Ed25519 public key as the canonical public OKP JWK.
@spec thumbprint(binary(), BoundedAuthorityProtocol.V1.Bounds.t() | map()) :: {:ok, binary()} | {:error, :invalid}
Returns the canonical base64url RFC 7638 thumbprint.
@spec thumbprint_preimage(binary(), BoundedAuthorityProtocol.V1.Bounds.t() | map()) :: {:ok, binary()} | {:error, :invalid}
Returns the exact RFC 7638 public OKP thumbprint preimage.