@hashgraph/solo
    Preparing search index...
    Index

    Constructors

    Properties

    ECKeyAlgo: { hash: string; name: string; namedCurve: string } = ...
    SigningKeyAlgo: {
        hash: string;
        modulusLength: number;
        name: string;
        publicExponent: Uint8Array<ArrayBuffer>;
    } = ...
    SigningKeyUsage: KeyUsage[] = ...
    TLSCertKeyExtendedUsages: ExtendedKeyUsage[] = ...
    TLSCertKeyUsages: number = ...
    TLSKeyAlgo: {
        hash: string;
        modulusLength: number;
        name: string;
        publicExponent: Uint8Array<ArrayBuffer>;
    } = ...
    TLSKeyUsage: KeyUsage[] = ...

    Methods

    • Convert PEM private key into CryptoKey

      Parameters

      • pemString: string
      • algo: any

        key algorithm

      • OptionalkeyUsages: KeyUsage[] = ...

      Returns Promise<CryptoKey>

    • Convert CryptoKey into PEM string

      Parameters

      • privateKey: CryptoKey

      Returns Promise<string>

    • Parameters

      • keysDirectory: string
      • stagingKeysDirectory: string
      • nodeAliases: NodeAliases

      Returns void

    • Generate gRPC TLS key

      It generates TLS keys in PEM format such as below: hedera-.key hedera-.crt

      Parameters

      • nodeAlias: `node${number}`
      • distinguishedName: Name = ...

        distinguished name as: new x509.Name(CN=${nodeAlias},ST=${state},L=${locality},O=${org},OU=${orgUnit},C=${country})

      Returns Promise<NodeKeyObject>

    • Given the path to the PEM certificate (Base64 ASCII), will return the DER (raw binary) bytes

      Parameters

      • pemCertFullPath: string

      Returns Uint8Array<ArrayBuffer>

    • Load node keys and certs from PEM files

      Parameters

      • nodeAlias: `node${number}`
      • keysDirectory: string

        directory where keys and certs are stored

      • algo: any

        algorithm used for key

      • nodeKeyFiles: PrivateKeyAndCertificateObject

        an object stores privateKeyFile and certificateFile

      • OptionalkeyName: string = ''

        optional key type name for logging

      Returns Promise<NodeKeyObject>

    • Load signing key and certificate

      Parameters

      • nodeAlias: `node${number}`
      • keysDirectory: string

        directory path where pem files are stored

      Returns Promise<NodeKeyObject>

    • Load TLS key and certificate

      Parameters

      • nodeAlias: `node${number}`
      • keysDirectory: string

        directory path where pem files are stored

      Returns Promise<NodeKeyObject>

    • Return a list of subtasks to generate gossip keys

      WARNING: These tasks MUST run in sequence.

      Parameters

      • nodeAliases: NodeAliases
      • keysDirectory: string

        keys directory

      • currentDate: Date = ...
      • OptionalallNodeAliases: NodeAliases = null

        includes the nodeAliases to get new keys as well as existing nodeAliases that will be included in the public.pfx file

      Returns SoloListrTask<any>[]

      a list of subtasks

    • Return a list of subtasks to generate gRPC TLS keys

      WARNING: These tasks should run in sequence

      Parameters

      • nodeAliases: NodeAliases
      • keysDirectory: string

        keys directory

      • currentDate: Date = ...

      Returns SoloListrTask<any>[]

      return a list of subtasks