move part to cc-wallet-engine