The invention provides an on-chain and off-chain
dynamic mapping method for a data
directory based on a block chain and an
oracle machine and a related device, and belongs to the technical field of block chains. According to the invention, based on bound user identity registration information,
database directory information uploaded to a distributed storage
system is synchronized to a block chain by using a block chain
oracle machine technology; when the
database directory information is synchronized to the block chain,
casting the DNFT according to the
database directory information uploaded to the distributed storage
system, and dynamically storing the database directory information on the block chain by using the cast DNFT; and establishing a
dynamic mapping relationship between the database directory information on the block chain dynamically stored by the cast DNFT and the database directory information acquired from the block chain, and realizing
dynamic mapping of the database directory information on the block chain and the database directory information under the block chain. According to the method, the problems that the on-chain and off-chain
data mapping is difficult to flexibly and efficiently realize according to the actual condition during database operation, and the improvement of the overall
system performance is limited are solved.