Skip to content

Commit

Permalink
docs: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
li0ard committed Sep 10, 2024
1 parent 1a5ea19 commit a0ff7f5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/asn1/pkd.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { AsnProp, AsnType, AsnPropTypes, AsnTypeTypes, AsnArray } from "@peculiar/asn1-schema";
import { Certificate } from "@peculiar/asn1-x509";

/** Class for ASN1 schema of Certificates set */
@AsnType({ type: AsnTypeTypes.Set, itemType: Certificate })
export class Certificates extends AsnArray<Certificate> {}
import { CertificateSet } from "@peculiar/asn1-cms";
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";

/** Class for ASN1 schema of CSCA master list. Described by ICAO 9303 p.12 section 9.2 */
export class CSCAMasterList {
Expand All @@ -12,6 +8,6 @@ export class CSCAMasterList {
version: number = 0;

/** CSCA certificates */
@AsnProp({ type: Certificates })
certificates: Certificates = new Certificates()
@AsnProp({ type: CertificateSet })
certificates: CertificateSet = new CertificateSet()
}
1 change: 1 addition & 0 deletions src/dg2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DG2 {
}
/**
* Read Biometric data block
* @hidden
* @param tlv
*/
readBDB(tlv: TLV): Interfaces.DecodedImage {
Expand Down
2 changes: 2 additions & 0 deletions src/dg3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Enums, Interfaces } from "./index";

/**
* Class for working with DG3 (Fingerprint)
* @hideconstructor
* @experimental
*/
export class DG3 {
Expand All @@ -25,6 +26,7 @@ export class DG3 {
}
/**
* Read Biometric data block
* @hidden
* @param tlv
*/
readBDB(tlv: TLV): Interfaces.DecodedFingerprint {
Expand Down
2 changes: 2 additions & 0 deletions src/dg4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { Enums, Interfaces } from "./index";

/**
* Class for working with DG4 (Iris)
* @hideconstructor
* @experimental
*/
export class DG4 {
/**
* Extract int from buffer
* @hidden
* @param data Buffer
* @param start Offset
* @param end Offset+length
Expand Down
1 change: 1 addition & 0 deletions src/pkd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { CSCAMasterList } from "./asn1/pkd";

/**
* Class for working with CSCA master list
* @see [ICAO Masterlist](https://www.icao.int/Security/FAL/PKD/Pages/ICAO-Master-List.aspx)
*/
export class PKD {
/**
Expand Down

0 comments on commit a0ff7f5

Please sign in to comment.