[wallet] refactored wallet code into blockchain, added licenses to resources, stuck on failing blockchain tests.