UNPKG

@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

75 lines (74 loc) • 2.88 kB
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 { IsEnum, IsOptional, IsString } from "class-validator"; //#region src/modules/vc/anoncreds-w3c-credential/AnonCredsW3cCredentialProof.ts /** * AnonCreds W3C compatibility proof model. * * Represents a `DataIntegrityProof`-shaped wire payload used by the anoncreds W3C credential support, * while keeping the credential-specific model separate from true linked-data proof types. */ var AnonCredsW3cCredentialProof = class { constructor(options) { if (options) { this.type = options.type; this.cryptosuite = options.cryptosuite; this.verificationMethod = options.verificationMethod; this.proofPurpose = options.proofPurpose; this.domain = options.domain; this.challenge = options.challenge; this.nonce = options.nonce; this.created = options.created; this.expires = options.expires; this.proofValue = options.proofValue; this.previousProof = options.previousProof; } } }; __decorate([ IsString(), IsEnum(["DataIntegrityProof"]), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "type", void 0); __decorate([IsString(), __decorateMetadata("design:type", String)], AnonCredsW3cCredentialProof.prototype, "cryptosuite", void 0); __decorate([IsString(), __decorateMetadata("design:type", String)], AnonCredsW3cCredentialProof.prototype, "proofPurpose", void 0); __decorate([IsString(), __decorateMetadata("design:type", String)], AnonCredsW3cCredentialProof.prototype, "verificationMethod", void 0); __decorate([ IsUri(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "domain", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "challenge", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "nonce", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "created", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "expires", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "proofValue", void 0); __decorate([ IsString(), IsOptional(), __decorateMetadata("design:type", String) ], AnonCredsW3cCredentialProof.prototype, "previousProof", void 0); //#endregion export { AnonCredsW3cCredentialProof }; //# sourceMappingURL=AnonCredsW3cCredentialProof.mjs.map