Skip to content

Commit

Permalink
fix: correct vault path (#678)
Browse files Browse the repository at this point in the history
Signed-off-by: Bassam Riman <bassam.riman@iohk.io>
  • Loading branch information
CryptoKnightIOG authored Aug 31, 2023
1 parent f1cb5d8 commit 9426e7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class CredentialDefinitionServiceImpl(
_ <-
didSecretStorage.insertKey(
DidId(in.author),
KEY_ID,
s"$KEY_ID/${createdCredentialDefinition.guid}",
DIDSecret(privateCredentialDefinitionJson, PrivateCredentialDefinitionSchemaSerDesV1.version)
)
} yield createdCredentialDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ object CredentialDefinitionBasicSpec extends ZIOSpecDefault with CredentialDefin
svc <- ZIO.service[DIDSecretStorage]
maybeDidSecret <- svc.getKey(
DidId(credentialDefinitionInput.author),
"anoncred-credential-definition-private-key",
s"anoncred-credential-definition-private-key/${fetchedCredentialDefinition.guid}",
PrivateCredentialDefinitionSchemaSerDesV1.version
)
(assertCorrectPrivateDefinitionSchema, maybeValidPrivateDefinitionZIO) = maybeDidSecret match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VaultDIDSecretStorage(vaultKV: VaultKVClient) extends DIDSecretStorage {
_ <- vaultKV
.set(path, kv)
.when(!alreadyExist)
.someOrFail(Exception(s"Secret on path $path alraedy exists."))
.someOrFail(Exception(s"Secret on path $path already exists."))
} yield 1
}

Expand Down

0 comments on commit 9426e7f

Please sign in to comment.