The application discloses a cross-chain
data transmission method and
system, relates to the technical field of blockchains, and applies to a data possession end. The method comprises the following steps: generating a corresponding linear key matrix according to an access strategy of each attribute; encrypting to-be-transmitted data according to a security vector set and the linear key matrix to obtain target encrypted
ciphertext; sending the target encrypted
ciphertext to a main chain, and storing the target encrypted
ciphertext to a target storage position through the main chain, so that a data user end obtains the target encrypted ciphertext through a
relay chain and a parallel chain. The blockchains in the
data transmission system are divided into the main chain, the parallel chain and the
relay chain. Then, data is stored on a distributed storage network. Finally, an attribute-based
encryption algorithm is used to
resist quantum attacks and ensure the safety of data in the transmission process, so that the overall execution efficiency, the computing performance and the
system safety of the
blockchain network data transmission are improved.