How to construct a regular octagon given the distance across flat 80mm using specific method

no idea what the specific method is, but if you construct a square with the diagonal of 80mm, then just bisect each side. and draw new diagonals.