Skip to content

Commit 189674e

Browse files
committed
Merge branch 'main' into feature/client-attestation-oid4vp
Signed-off-by: Sebastian Bickerle <sebastian.bickerle@lissi.id>
2 parents 2e23426 + 912ad59 commit 189674e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/WalletFramework.Core/Base64Url/Base64UrlString.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ public readonly struct Base64UrlString
66
{
77
private string Value { get; }
88

9+
public byte[] AsByteArray => Base64UrlEncoder.DecodeBytes(Value);
10+
911
private Base64UrlString(string value)
1012
{
1113
Value = value;

src/WalletFramework.Core/Cryptography/Models/PublicKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public record PublicKey(Base64UrlString X, Base64UrlString Y)
1111

1212
public static class PublicKeyFun
1313
{
14-
public static object ToJwkObj(this PublicKey publicKey) => new
14+
public static object ToObj(this PublicKey publicKey) => new
1515
{
1616
kty = publicKey.KeyType,
1717
crv = publicKey.Curve,

src/WalletFramework.Oid4Vc/Oid4Vci/Authorization/DPop/Implementations/DPopHttpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private async Task<string> GenerateDPopHeaderAsync(KeyId keyId, string audience,
129129
};
130130

131131
var publicKey = await _keyStore.GetPublicKey(keyId);
132-
header["jwk"] = publicKey.ToJwkObj();
132+
header["jwk"] = publicKey.ToObj();
133133

134134
string? ath = null;
135135
if (!string.IsNullOrEmpty(accessToken))

src/WalletFramework.SdJwtVc/Services/SdJwtVcHolderService/SdJwtSigner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public async Task<string> GenerateKbProofOfPossessionAsync(KeyId keyId, string a
2424
if (string.Equals(type, "openid4vci-proof+jwt", StringComparison.OrdinalIgnoreCase))
2525
{
2626
var publicKey = await _keyStore.GetPublicKey(keyId);
27-
header["jwk"] = publicKey.ToJwkObj();
27+
header["jwk"] = publicKey.ToObj();
2828
}
2929

3030
var payload = new Dictionary<string, object>

0 commit comments

Comments
 (0)