There is absolutely no reason to be dicking around with the Bitcoin algorithms. Period... Run a Bitcoin/Lightning Node instead..