move parts to cc-wallet-core