The present invention discloses a method and device for
data processing based on a block chain. The method comprises: when a block chain node receives
business data to be stored, determining the data attributes of the
business data; if the data attributes of the
business data is a text type, employing a preset private key in a public and private key pair corresponding to the user identification included in the business data to perform
encryption processing of the business data; and if the data attributes of the business data is an
image type, determining the abstract of the business data, and employing preset private key in a public and private key pair corresponding to the user identification included in the business data to perform
encryption processing of the abstract. The features of decentration, openness and transparency,
tamper resistance and
dependability of the block chain technology are employed to employ different
processing modes according to the data attributes of the business data to store the business data into the block
chain network so as to ensure the business
data authenticity and ensure that the business data is not tampered.