A Peer-to-Peer Market Algorithm for a Blockchain Platform