UNPKG

@peculiar/asn1-tsp

Version:

ASN.1 schema for the Time-Stamp Protocol (TSP) defined in RFC 3161.

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