How blockchain powers cryptocurrency