Coverage for src\pqlattice\_backends\_protocol.py: 100%

1 from typing import Protocol

2

3 from ..typing import Matrix, SquareMatrix, Vector

4

5

6 class BackendInterface(Protocol):

7 def lll(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ...

8

9 def bkz(self, lattice_basis: SquareMatrix, block_size: int, delta: float) -> SquareMatrix: ...

10

11 def hkz(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ...

12

13 def shortest_vector(self, lattice_basis: SquareMatrix) -> Vector: ...

14

15 def hnf(self, matrix: Matrix) -> tuple[Matrix, SquareMatrix]: ...