Skip to content
Snippets Groups Projects
Commit 83fa608f authored by Alexey Lunin's avatar Alexey Lunin
Browse files

chore: merge changes from main

parents dc2a296d 59fbd263
No related branches found
No related tags found
1 merge request!93OCM key - svdx id mapping OP#252
Pipeline #74795 failed with stages
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file. See All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.30.0](https://code.vereign.com/svdh/ocm-engine/compare/v1.29.0...v1.30.0) (2024-10-30)
### Features
* ocm did svdx generation for sender OP[#250](https://code.vereign.com/svdh/ocm-engine/issues/250) ([dcb9778](https://code.vereign.com/svdh/ocm-engine/commit/dcb97780f262ff18d74f391141d81277f19aa58a))
## [1.29.0](https://code.vereign.com/svdh/ocm-engine/compare/v1.28.0...v1.29.0) (2024-10-07) ## [1.29.0](https://code.vereign.com/svdh/ocm-engine/compare/v1.28.0...v1.29.0) (2024-10-07)
......
...@@ -40,7 +40,7 @@ export class CatalogClient { ...@@ -40,7 +40,7 @@ export class CatalogClient {
did: didSvdx, did: didSvdx,
}); });
} catch (e) { } catch (e) {
this.logger.debug("storeMapping failed", e); this.logger.debug("createAccount failed", e);
throw e; throw e;
} }
}; };
......
...@@ -44,7 +44,7 @@ export class AgentOcmService { ...@@ -44,7 +44,7 @@ export class AgentOcmService {
if (!record) { if (!record) {
// todo regenerate in that case? // todo regenerate in that case?
throw new Error( throw new Error(
"VC not found in storage, even though the catalog has some data about it.", `VC not found in storage, even though the catalog has some data about it. did: ${didSvdx}, email: ${dto.email}`,
); );
} }
const vc = record.content; const vc = record.content;
...@@ -88,16 +88,16 @@ export class AgentOcmService { ...@@ -88,16 +88,16 @@ export class AgentOcmService {
"@context": [ "@context": [
"https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/v1",
"https://w3id.org/security/suites/jws-2020/v1", "https://w3id.org/security/suites/jws-2020/v1",
"http://116.203.134.234/.well-known/hin-account-schema", // todo replace with vereign domain "https://www.vereign.com/.well-known/svdx-account-schema",
], ],
type: ["VerifiableCredential"], type: ["VerifiableCredential"],
id: svdxDid.did + "?uuid=" + credentialRecordId, id: svdxDid.did + "?uuid=" + credentialRecordId,
issuer: svdxDid.did, issuer: svdxDid.did,
issuanceDate: new Date().toISOString(), issuanceDate: new Date().toISOString(),
credentialSubject: { credentialSubject: {
type: "hin:HinAccount", type: "svdx:SvdxAccount",
"hin:email": dto.email, "svdx:email": dto.email,
"hin:did": newDidSvdx.didState.did, "svdx:did": newDidSvdx.didState.did,
}, },
}, },
W3cCredential, W3cCredential,
......
import { IsNotEmpty, IsString } from "class-validator"; import { IsNotEmpty, IsEmail } from "class-validator";
export class RequestSenderEmailVcDto { export class RequestSenderEmailVcDto {
@IsString() @IsEmail()
@IsNotEmpty() @IsNotEmpty()
email: string; email: string;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment