BCH codes with efficient encoding and decoding algorithms have many
applications in communications, cryptography and combinatorics design. This
paper studies a class of linear codes of length 2qm−1​ over
Fq​ with special trace representation, where q is an odd prime
power. With the help of the inner distributions of some subsets of association
schemes from bilinear forms associated with quadratic forms, we determine the
weight enumerators of these codes. From determining some cyclotomic coset
leaders δi​ of cyclotomic cosets modulo 2qm−1​, we prove
that narrow-sense BCH codes of length 2qm−1​ with designed distance
δi​=2qm−qm−1​−1−2q⌊2m−3​⌋+i−1​ have the corresponding trace representation, and have the
minimal distance d=δi​ and the Bose distance dB​=δi​, where
1≤i≤⌊4m+3​⌋