iotaledger / iotaledger/sd-jwt-payload

JWT headers handling

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Feature description

Provide better APIs to set (during construction) and read JWT headers for both SD-JWT and KB-JWT.

### Motivation

The currently provided `SdJwtBuilder::header` is not ergonomic at all. Headers cannot be read.

### Requirements

Allow setting headers with an API similar to `.header(key, value)`.
Allow accessing a parsed SD-JWT's headers through an API similar to `.headers().get("kid")`.

### Open questions

_No response_

### Are you planning to do it yourself in a pull request?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.