The invention discloses a
blockchain access control method and device based on
ciphertext policy attribute
encryption, solves the problems of data privacy disclosure, low
throughput and the like caused by public transparency, block capacity limitation and the like of a block chain in the prior art, and enhances the
controllability, privacy and expandability of data fusion and sharing. The method comprises the following steps: designing an access strategy of a tree
logic structure according to an attribute set and an access demand; associating the
ciphertext with an access strategy, and encrypting the data by using the access strategy to obtain the
ciphertext; associating the key with the attribute set, and obtaining the key according to the attribute set; releasing the storage address of the ciphertext to a block
chain network in a transaction form; and the user who satisfies the specified attribute set in the access strategy can obtain the secret key, and decrypts the stored ciphertext through the storage address on the block chain. According to the method, the credibility of the shared data is enhanced through the characteristics of non-tampering and public transparency of the block chain, the privacy and
controllability of the data are guaranteed through ciphertext policy attribute
encryption, and the expandability of the device is improved through the ciphertext storage address chaining. According to the method, the storage address of the data is encrypted through the access strategy instead of the access strategy or the encrypted data, so that the requirements of goodprivacy, high
controllability, high
throughput and the like can be met.