The invention discloses a cross-chain
data transmission method and
system, and relates to the technical field of block chains, the cross-chain
data transmission method is applied to a data owning end, and 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 a target encrypted
ciphertext; and 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 use end obtains the target encrypted ciphertext through a
relay chain and a parallel chain. A block chain in a
data transmission system is divided into a main chain, a parallel chain and a
relay chain. According to the method, the block
chain network data is acquired, then the data is stored in the distributed storage network, and finally, an attribute-based
encryption algorithm is used for resisting
quantum attacks to ensure
data security in a transmission process, so that the overall execution efficiency, the computing performance and the
system security of block
chain network data transmission are improved.