Skip to main content

LocalKey

Represents a local key with its public and private components.

  • Full name: \Bloock\Entity\Key\LocalKey

Properties​

key​

Is the public key.

public string $key

privateKey​

Is the private key.

public string $privateKey

keyType​

Is the type of the key.

public string $keyType

Methods​

__construct​

Constructs a LocalKey object with the specified parameters.

public __construct(string $key, string $privateKey, string $keyType): mixed

Parameters:

ParameterTypeDescription
$keystring
$privateKeystring
$keyTypestring

fromProto​

public static fromProto(\Bloock\LocalKey $res): \Bloock\Entity\Key\LocalKey
  • This method is static.

Parameters:

ParameterTypeDescription
$res\Bloock\LocalKey

toProto​

public toProto(): \Bloock\LocalKey


Automatically generated on 2024-04-17