@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
59 lines (58 loc) • 2.16 kB
JavaScript
import { IsUri } from "../../../../utils/validators.mjs";
import __decorateMetadata from "../../../../_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.mjs";
import __decorate from "../../../../_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.mjs";
import { IsOptional, IsString } from "class-validator";
//#region src/modules/vc/linked-data-proofs/models/LinkedDataProof.ts
/**
* Linked Data Proof
* @see https://w3c.github.io/vc-data-model/#proofs-signatures
*
* @class LinkedDataProof
*/
var LinkedDataProof = class {
constructor(options) {
if (options) {
this.type = options.type;
this.proofPurpose = options.proofPurpose;
this.verificationMethod = options.verificationMethod;
this.created = options.created;
this.domain = options.domain;
this.challenge = options.challenge;
this.jws = options.jws;
this.proofValue = options.proofValue;
this.nonce = options.nonce;
}
}
};
__decorate([IsString(), __decorateMetadata("design:type", String)], LinkedDataProof.prototype, "type", void 0);
__decorate([IsString(), __decorateMetadata("design:type", String)], LinkedDataProof.prototype, "proofPurpose", void 0);
__decorate([IsString(), __decorateMetadata("design:type", String)], LinkedDataProof.prototype, "verificationMethod", void 0);
__decorate([IsString(), __decorateMetadata("design:type", String)], LinkedDataProof.prototype, "created", void 0);
__decorate([
IsUri(),
IsOptional(),
__decorateMetadata("design:type", String)
], LinkedDataProof.prototype, "domain", void 0);
__decorate([
IsString(),
IsOptional(),
__decorateMetadata("design:type", String)
], LinkedDataProof.prototype, "challenge", void 0);
__decorate([
IsString(),
IsOptional(),
__decorateMetadata("design:type", String)
], LinkedDataProof.prototype, "jws", void 0);
__decorate([
IsString(),
IsOptional(),
__decorateMetadata("design:type", String)
], LinkedDataProof.prototype, "proofValue", void 0);
__decorate([
IsString(),
IsOptional(),
__decorateMetadata("design:type", String)
], LinkedDataProof.prototype, "nonce", void 0);
//#endregion
export { LinkedDataProof };
//# sourceMappingURL=LinkedDataProof.mjs.map