Skip to content

Commit

Permalink
chore: updated did:key jwk_jcs-pub parameter name (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean authored Jun 20, 2023
1 parent b91ac52 commit d18a7ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/id/walt/cli/did/DidCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CreateDidCommand : CliktCommand(
is WebMethodOption -> DidService.create(web, keyId, DidWebCreateOptions((method as WebMethodOption).domain, (method as WebMethodOption).path))
is EbsiMethodOption -> DidService.create(ebsi, keyId, DidEbsiCreateOptions((method as EbsiMethodOption).version))
is CheqdMethodOption -> DidService.create(cheqd, keyId, DidCheqdCreateOptions((method as CheqdMethodOption).network))
is KeyMethodOption -> DidService.create(key, keyId, DidKeyCreateOptions((method as KeyMethodOption).isJwk))
is KeyMethodOption -> DidService.create(key, keyId, DidKeyCreateOptions((method as KeyMethodOption).useJwkJcsPubMulticodec))
else -> DidService.create(DidMethod.valueOf(method.method), keyId)
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/id/walt/cli/did/DidMethodOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ class CheqdMethodOption : DidMethodOption("cheqd") {
val network: String by option("-n", "--network", help = "did:cheqd - Specify the network [testnet]").choice("mainnet", "testnet").default("testnet")
}
class KeyMethodOption : DidMethodOption("key") {
val isJwk: Boolean by option("-j", "--is-jwk", help = "did:key - is jwk_jcs-pub").flag(default = false)
val useJwkJcsPubMulticodec: Boolean by option("-j", "--useJwkJcsPub", help = "did:key - use jwk_jcs-pub multicodec (0xeb51)").flag(default = false)
}

0 comments on commit d18a7ab

Please sign in to comment.