File

libs/transactions/src/did-id/dto/public-key-jwk.dto.ts

Description

Describes a json web key object.

Implements

JsonWebKey

Index

Properties
  • Optional alg
  • Optional crv
  • Optional d
  • Optional dp
  • Optional dq
  • Optional e
  • Optional k
  • Optional kty
  • Optional n
  • Optional p
  • Optional q
  • Optional qi
  • Optional x
  • Optional y

Properties

Optional alg
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

The specific cryptographic algorithm used with the key.

Optional crv
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

Used curve, used with elliptic curves.

Optional d
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

Private exponent of an rsa private key.

Optional dp
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used in a rsa private key.

Optional dq
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used in a rsa private key.

Optional e
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

The exponent for the RSA public key.

Optional k
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used for a symmetric key

Optional kty
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

The family of cryptographic algorithms used with the key.

Optional n
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

The modulus for the RSA public key.

Optional p
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used in a rsa private key.

Optional q
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used in a rsa private key.

Optional qi
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

used in a rsa private key.

Optional x
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

coordinate of a position for elliptic curves

Optional y
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()

coordinate of a position for elliptic curves

import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';
/**
 * Describes a json web key object.
 */
export class PublicKeyJwkDto implements JsonWebKey {
  /**
   *  The family of cryptographic algorithms used with the key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  kty?: string;
  /**
   *  The modulus for the RSA public key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  n?: string;
  /**
   * The exponent for the RSA public key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  e?: string;
  /**
   *  The specific cryptographic algorithm used with the key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  alg?: string;
  /**
   * Used curve, used with elliptic curves.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  crv?: string;
  /**
   * Private exponent of an rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  d?: string;
  /**
   * used in a rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  dp?: string;
  /**
   * used in a rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  dq?: string;
  /**
   * used for a symmetric key
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  k?: string;
  /**
   * used in a rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  p?: string;
  /**
   * used in a rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  q?: string;
  /**
   * used in a rsa private key.
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  qi?: string;
  /**
   * coordinate of a position for elliptic curves
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  x?: string;
  /**
   * coordinate of a position for elliptic curves
   */
  @ApiProperty()
  @IsString()
  @IsOptional()
  y?: string;
}

results matching ""

    No results matching ""