Blockchain Mining with Trusted Devices