UNPKG

@peculiar/asn1-tsp

Version:

Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)

17 lines (16 loc) 581 B
import { __decorate } from "tslib"; import { AsnProp, OctetString } from "@peculiar/asn1-schema"; import { AlgorithmIdentifier } from "@peculiar/asn1-x509"; export class MessageImprint { constructor(params = {}) { this.hashAlgorithm = new AlgorithmIdentifier(); this.hashedMessage = new OctetString(); Object.assign(this, params); } } __decorate([ AsnProp({ type: AlgorithmIdentifier }) ], MessageImprint.prototype, "hashAlgorithm", void 0); __decorate([ AsnProp({ type: OctetString }) ], MessageImprint.prototype, "hashedMessage", void 0);