The invention provides a government affair cloud cross-department
data security sharing method and device, and relates to the technical field of
data security. The method comprises the following steps: a main chain of a block chain performs first-level
verification on a requester based on a VerifyCredate contract and an access policy white
list set by a department to which government affair data belongs; the access strategy is a dynamic attribute base access strategy generated by a department to which the government affair data belongs based on a dynamic attribute
encryption technology; under the condition that the first-level
verification is passed, generating an access credential,
synchronizing the access credential to a
side chain of the block chain, generating a zero-knowledge proof by the
side chain according to the operation log, and initiating a zero-knowledge proof
verification request to the main chain to perform second-level verification; and under the condition that the main chain passes the second-level verification, determining a cross-domain
trust score between the government affair data requesting department and the department to which the government affair data belongs based on the digital
certificate submitted by the requester by adopting a federal model, and performing third-level verification according to the cross-domain
trust score. According to the invention, the
data sharing security can be improved.