Blockchain: definition and mode of functioning