A computer program or script stored in a computer-readable storage medium on one or more computer resources in a network (NW), in an implementation as blockchain (BC), which is verified by at least one miner, and which is set up and programmed to generate, provide and exchange a trustworthy electronic record or certificate based on an electronic document (D) concerning a user (N), and contains a smart contract (SC) which is set up and programmed to check whether a document (D) provided by a certification authority (CA) and comprising an information (INFO) concerning the user (N) in an electronic format proves the compliance of the user (N) with a restriction (RE), the smart contract (SC) being set up and programmed for this purpose, (i) performing the checking of the fulfillment of the restriction (RE), (ii) calculating, depending on the result of the checking of the fulfillment of the restriction (RE), a proof (P), (iii) generating a certificate of the proof (P) using a cryptographic function, and (iv) sending the certificate to the user (N);
- and (iv) sending the certificate of the proof (P) and the proof (P) to the user (N).