Electronic Rights Transfer Protocol (ERTP). A smart contract framework for exchanging electronic rights