This invention proposes a method for sharing
traditional Chinese medicine (TCM) data based on attribute-based
encryption and
homomorphic encryption. The method includes an attribute
authorization agency, TCM data owners, a
blockchain, TCM data users, data user agents, and private key sharers. The attribute
authorization agency is responsible for generating the
homomorphic encryption public and private keys, attribute public and private keys, and verifying data compliance. The data owner encrypts the data using the
homomorphic encryption public key and stores it on the
blockchain after setting access policies using attribute-based
encryption. When a data user initiates an access request, the data
user agent verifies the user's access rights. Upon successful
verification, a homomorphic operation is performed on the
ciphertext. Subsequently, multiple private key sharers, who collaboratively manage fragments of the homomorphic private key, complete partial decryption. Finally, the TCM data user recovers the
plaintext result. This method ensures that TCM data is
usable but not visible through homomorphic
encryption, achieves precise
access control through attribute-based encryption, and reduces the risk of private
key escrow through
secret sharing.