public static function loadSignatureKeyPair(string $filePath): SignatureKeyPair
    {
        if (!\is_readable($filePath)) {
            throw new CannotPerformOperation(
                'Cannot read keyfile: '. $filePath
            );
        }
        return new SignatureKeyPair(
            new SignatureSecretKey(
                self::loadKeyFile($filePath)
            )
        );
    }
public static function loadSignatureKeyPair(string $filePath): SignatureKeyPair
    {
        if (!\is_readable($filePath)) {
            throw new CannotPerformOperation(
                'Cannot read keyfile: '. $filePath
            );
        }
        return new SignatureKeyPair(
            new SignatureSecretKey(
                self::loadKeyFile($filePath)
            )
        );
    }
public static function loadSignatureKeyPair ( string $ filePath ) : SignatureKeyPair { if ( ! \ is_readable ( $ filePath ) ) { throw new CannotPerformOperation ( 'Cannot read keyfile: ' . $ filePath ) ; } return new SignatureKeyPair ( new SignatureSecretKey ( self :: loadKeyFile ( $ filePath ) ) ) ; }
Load an asymmetric signature key pair from a file

@param string $filePath
@return SignatureKeyPair

@throws CannotPerformOperation
@throws InvalidKey
@throws \TypeError
@codeCoverageIgnore
Load an asymmetric signature key pair from a file