Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DidJwk and update other DID methods #1206

Merged
merged 42 commits into from
Feb 20, 2024
Merged

Add DidJwk and update other DID methods #1206

merged 42 commits into from
Feb 20, 2024

Conversation

acekyd
Copy link
Contributor

@acekyd acekyd commented Feb 5, 2024

What type of PR is this? (check all applicable)

  • πŸ“ Documentation Update
  • πŸ§‘β€πŸ’» Code Snippet

Description

This PR:

  • updates the @web/dids package
  • updates all snippets using DidxxxMethod imports to use the newly updated implementations with Didxxx
  • Add Kotlin and JS snippets on "How to create a DID" including with "DidJwk"
  • Updated other snippets especially with issuing VCs with DIDs to the correct code snippets but breaking because of the credentials package explained below

As a result of the @web5/dids package update, the following are pending or currently broken and I need more information to fix.

  • DidIonMethod uses generateDwnOptions() which no longer exists on DidIon and I can't find the substitute for it.
  • The credentials package doesn't fully support the updated DIDs and I've spoken with @nitro-neal and work is underway.
  • .toKeys() doesn't currently work in Kotlin to get the Keysets.

Added code snippets?

  • πŸ‘ yes

Added tests?

  • πŸ‘ yes

Added to documentation?

  • πŸ““ general documentation

[optional] What gif best describes this PR or how it makes you feel?


Copy link

codesandbox bot commented Feb 5, 2024

Review or Edit in CodeSandbox

Open the branch in Web Editor β€’ VS Code β€’ Insiders

Open Preview

Copy link

netlify bot commented Feb 5, 2024

βœ… Deploy Preview for tbd-website-developer ready!

Name Link
πŸ”¨ Latest commit 34b761c
πŸ” Latest deploy log https://app.netlify.com/sites/tbd-website-developer/deploys/65d4f8704d779a0008d94306
😎 Deploy Preview https://deploy-preview-1206--tbd-website-developer.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@blackgirlbytes
Copy link
Contributor

Thanks for starting this! This is good to see ahead of time!

ALRubinger and others added 20 commits February 12, 2024 14:34
* Issue #1197 - Add tbdex-kt dependencies to Kotlin TestSuite

With a WHOLE LOT of Dark Arts Evil Nonsense to make it work:

* SNAPSHOT dependency
* Addition of a SNAPSHOTs repo
* dependencyManagement to force version resolution

This may unblock us temporarily but will not work sustainably. The SNAPSHOT dependency will go away and due to version changes from upstream projects the dependencyManagement guards will need to be updated with them.
* Kotlin: PFI Allowlist

* dont publish test dids

* ocd
* kotlin shnips

* adding new line

* kotlin shnip wasnt generating

* removing extra code snippet

* enabling switch content

* adding clarity for presentation submission with Kotlin

* showing language switcher at the top

* adding back title

* adding back title

* hardcode imports

* make verifiable presentation more obvious

* put language switcher at the top

* remove unnnecessary import

* possible note for missing method

* PR #1199 - Fix jackson.core to a more compatible version

* handle all imports with model.*

* add in as snippet

---------

Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>
* add replyTo option for RFQs

* Update site/docs/tbdex/wallet/send-rfq.mdx

Co-authored-by: Angie Jones <jones.angie@gmail.com>

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>
* Fan Club VC with Kotlin snippets

* wrapping in a try catch
…icate failure (#1210)

tweak a few badges to avoid yellow, orange colors

this will make failures/warnings more obvious
* Presentation Definition kotlin updates

* Fix tests

* removed submission requirements

* aligned validation snippets

---------

Co-authored-by: angiejones <jones.angie@gmail.com>
* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Make io.ktor.server available on the classpath

* Try to fix Kotlin compilation errors

* try to fix build

* conforming title to the rest of the guides on the site

* pushing up some changes, still addressing comments

* separate out Kotlin classes

* fix build issue with package names

* fix build

* update PFI did creation, sync names of sever var

* Apply suggestions from code review

Apply suggestions

Co-authored-by: Angie Jones <jones.angie@gmail.com>

* add imports

* removing dup imports

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>
Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>
* switching to Shnips in JWT to VC

* add headers

* fix path
* first push for orders page to write snippets

* fix kotlin snippet and imports

* update markdown

* Adding Close Message snippets

* fixed js Close snippet

* address comments to resolve them, still need to test after wiping out most of them

* missing js ordermessage rename

* add language links

---------

Co-authored-by: Rizel Scarlett <rizel@tbd.email>
Co-authored-by: angiejones <jones.angie@gmail.com>
* Wallet: Get Offerings - js/kt

* added mock server and tests for Kotlin

* test data

* JS mock PFI server and tests
@acekyd acekyd marked this pull request as ready for review February 19, 2024 09:11
@@ -18,7 +18,18 @@ export async function getDwnEndpoints() {
const serviceEndpointNodes = await getTechPreviewDwnEndpoints();

// generates key pairs used for authorization and encryption when interfacing with DWNs
const didOptions = await DidIonMethod.generateDwnOptions({ serviceEndpointNodes });
const didOptions = {
keySet: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do these need to be explicitly defined vs a default set provided by the SDK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generateDwnOptions method was removed entirely. In conversation with Moe on what the alternative is, and will update once available.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frankhinek the dev shouldn't have to do this right? how do we get around it?

@acekyd acekyd merged commit 712dcaf into main Feb 20, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants