"What if it was possible to have a local build system that would run tests etc and provide a cryptographically secure hash proving that the tests passed"
On who's system? Your? Mine? Someone else's? The purpose of CI is consistent continuous integration in a same like manner, not relying on developer A, B or C's systems which may vary greatly.