Options
All
  • Public
  • Public/Protected
  • All
Menu

Common representation of private or public key

Hierarchy

Index

Constructors

constructor

  • Creates Key.

    If no algorithm or parameters are specified, default values will be used. This is strongly discurraged, because it will forbid using other Key types. Therefore use it only for testing.

    Parameters

    • key: string

      Hex encoded key value

    • Optional algorithm: KeyType

      Key type

    • Optional parameters: KeyParameters

      Parameters of the key type

    Returns Key

Properties

algorithm

algorithm: KeyType

Algorithm used for key generation.

key

key: string

Key data.

parameters

parameters: KeyParameters

Parameters of the algorithm.

Methods

computeHash

  • Computes hash of message using hashing function of signature schema.

    Parameters

    • msg: string

      Hex encoded input data

    • scheme: SignatureScheme

      Signing schema to use

    Returns string

isSchemaSupported

serializeJson

Generated using TypeDoc