Cashier-BTC icon indicating copy to clipboard operation
Cashier-BTC copied to clipboard

Can we change from Bitcoin to An Altcoin?

Open swatchie-1 opened this issue 6 years ago • 4 comments

Hi, if yes, can we know which settings to change? It says

(node:7211) UnhandledPromiseRejectionWarning: Error: {"result":null,"error":{"code":-5,"message":"Invalid Hilux address"},"id":"21ce350b-fd60-426b-bfc7-a340421bffe3"}

When running nodejs worker.js and npm test.

Appreciate any help we can get.

swatchie-1 avatar Aug 05 '18 14:08 swatchie-1

You need to look into https://github.com/bitcoinjs/bitcoinjs-lib and see if it can work with different coins. Cashier-btc relies on this lib.

Overtorment avatar Aug 05 '18 16:08 Overtorment

It seems to generate its own address using the sha256 hash function. Can't it just obtain a new address from the altcoin-cli command?

swatchie-1 avatar Aug 06 '18 02:08 swatchie-1

You can do it here: https://github.com/Overtorment/Cashier-BTC/blob/master/models/signer.js#L133

Overtorment avatar Aug 08 '18 09:08 Overtorment

@Overtorment , I will be appreciated for instruction for coind daemon forked from bitcoin. Maybe on the example of first altcoin pull request we can understand how integrate others.

This is my coin https://github.com/CryptorClub/GreenCoin

Thanks

CryptorClub avatar Oct 06 '18 12:10 CryptorClub