Rights and Obligations In and Out of Blockchains