\CryptoManana\Core\Traits\CommonValidationsKeyPairFormatValidationTrait

Trait KeyPairFormatValidationTrait - Reusable implementation of asymmetric key pair format validations.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
validatePrivateKeyFormat()
validatePublicKeyFormat()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

validatePrivateKeyFormat()

validatePrivateKeyFormat(string  $privateKey) 

Internal method for the validation of the private key string representation format.

Parameters

string $privateKey

The private key input string.

Throws

\Exception

Validation errors.

validatePublicKeyFormat()

validatePublicKeyFormat(string  $publicKey) 

Internal method for the validation of the public key string representation format.

Parameters

string $publicKey

The public key input string.

Throws

\Exception

Validation errors.