BeACon : Blockchain-enabled consent management for healthcare applications