Nasdaq patents a system based on blockchain