The invention relates to an alliance chain-based energy
data sharing method and device, and a medium, and the method comprises the steps: collecting and preprocessing energy data based on a TEE, encrypting the data in the TEE, uploading the data to an IPFS, generating a hash value, and binding a data owner identifier; when the
verification request is responded, integrity
verification, numerical value
verification and other operations are executed, and an
encryption result is generated and returned to the
demand side. After verification is passed, copyright information is embedded according to a
data type matching watermarking
algorithm, the IPFS is re-encrypted and uploaded, and a shared hash value is obtained. And storing the hash value and the decryption key into the block chain through the
consensus node of the alliance chain, and transmitting the hash value and the decryption key to the
demand side. And after the
demand side decrypts and obtains the data, extracting the
watermark and comparing the
watermark with the on-chain parameters for verification. According to the method, sharing and verification of the data in an
encryption state are ensured,
privacy protection and use
controllability are considered, and the problems of data leakage, tampering and ownership tracing in traditional sharing are solved.