At a time when urban and rural educational resources are dependent on each other, promoting the sinking of digital educational resources to the countryside is an important path to bridge the education gap, and the study proposes a blockchain-enabled solution to this end. First, we build a “federation chain + IPFS” architecture to jointly maintain metadata such as resource ownership and access policies. Resource files are stored in an efficient distributed file system (IPFS). Next, an attribute-based access control (ABAC) model is constructed. The system realizes permission determination by comprehensively evaluating their identity attributes, resource labels and environments. Finally design a fine-grained secure sharing algorithm that incorporates attribute-based encryption. The access policy is transformed into an encryption policy tree and integrated into the resource ciphertext. Only users with exactly matching attributes can decrypt the ciphertext, and key update and policy adjustment are supported. The study compares it with two methods GT-DEMATEL and Asmuth-Bloom in multiple dimensions. This paper’s method is able to handle over 900 concurrent resource requests per second in resource sharing efficiency, and the system transaction latency is extremely low, with a transaction taking only 93ms to be confirmed in a network of 36 nodes even in the presence of Byzantine nodes. At the same time, the internal communication cost of the system is extremely low. In a network of 36 nodes, the communication overhead for reaching consensus is only 187, less than 1/6 of the comparison scheme.