-
Hello, I’m trying to use Key Binding exactly as described in the documentation: URL However, I’m unable to make it work and I keep running into the following errors:
My current code does the following:
I’ve also tried this approach:
The first approach throws Could you please help me understand what I’m doing wrong and how to properly use Key Binding? Thank you very much in advance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @rober12 As seen here, I assume you haven't passed the functions for the Have a look at: sd-jwt-js/examples/sd-jwt-example/kb.ts Line 15 in c178fde @lukasjhan we may update the docs to better point to the test files we have because then we know that the code is working. |
Beta Was this translation helpful? Give feedback.
Hi @rober12
can you please also provide the code where you init your sdjwt instance like
sdjwt = new new SDJwtInstance({ ... })
As seen here, I assume you haven't passed the functions for the
kbSigner
andkbVerifier
. There is no default function to fall back so you get this errror: https://github.com/openwallet-foundation/sd-jwt-js/blob/main/docs/0.x/sdjwt-instance.md#configurationsHave a look at:
sd-jwt-js/examples/sd-jwt-example/kb.ts
Line 15 in c178fde
@lukasjhan we may update the docs to better point to the test files we have because then we know that the code is working.