<p>You can use the following library to generate bitcoin address using Swfit on IOS</p>

<p><a href="https://github.com/onmyway133/AddressGenerator" rel="nofollow noreferrer">https://github.com/onmyway133/AddressGenerator</a></p>

<p>Please note that the legacy bitcoin cash and bitcoin address is the same the only difference is the network.</p>

<p>if you're looking for cashAddr (qq address) format, take a look on these open source libraries:</p>

<p><a href="https://github.com/bitcoincashjs/cashaddrjs" rel="nofollow noreferrer">https://github.com/bitcoincashjs/cashaddrjs</a> (javascript)
<a href="https://cashaddr.bitcoincash.org/" rel="nofollow noreferrer">https://cashaddr.bitcoincash.org/</a>
<a href="https://github.com/schancel/cashaddr-converter" rel="nofollow noreferrer">https://github.com/schancel/cashaddr-converter</a></p>

<p>Original cashAddr algorithm (C++)</p>

<p><a href="https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/cashaddr.cpp" rel="nofollow noreferrer">https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/cashaddr.cpp</a></p>

<p>it's pretty easy to read and understand, you can translate it to any language.</p>

CC BY-SA 4.0
2018-05-27T22:31:33.633Z
I believe OP may be asking for a way to generate cashaddr addresses.
Pieter Wuille
CC BY-SA 4.0
2018-05-27T22:48:40.280Z
Thanks for mention that, I've edited my question by adding more details.
Tailer
CC BY-SA 4.0
2018-05-27T22:29:14.810Z
2018-05-27T22:48:10.270Z
2018-05-27T22:48:10.270Z
Tailer
<p>If I'm a mobile developer who wants to integrate bitcoin cash in an app, how can I generate Bitcoin Cash addresses programmatically, without relying on a 3rd party service, like Coinbase?</p>

CC BY-SA 4.0
2018-05-25T17:47:34.213Z
You can use the exact same method used to generate Bitcoin addresses.  There is one parameter to change, as far as I know, and that is the part of the "[path](https://github.com/axic/bip32-path)" that identifies the type of cryptocurrency the address is for.
Dave Scotese
CC BY-SA 4.0
2018-05-26T12:30:27.413Z
mobile developer? which language? there are many libraries to generate bitcoin addresses.
Tailer
CC BY-SA 4.0
2018-05-27T19:23:14.193Z
@Adam: iOS, Swift would be preferable.
p3scobar
CC BY-SA 4.0
2018-05-27T19:26:34.703Z
@DaveScotese: The exact method being.....?
p3scobar
CC BY-SA 4.0
2018-06-11T00:09:38.913Z
@p3scobar HD Protocol, HD Wallet, BIP32, which is described at https://bitcoin.org/en/glossary/hd-protocol with links to some helpful resources.
Dave Scotese
CC BY-SA 4.0
2018-06-11T00:23:56.583Z
You might also want to see https://github.com/satoshilabs/slips/blob/master/slip-0044.md to verify that your addresses should be generated at the m/44/145/ derivation path
Dave Scotese
<address><address-generation>
How can I generate bitcoin cash addresses programmatically?
p3scobar
# How can I generate bitcoin cash addresses programmatically?

(Asked by: username_0 on 2018-05-25)

If I'm a mobile developer who wants to integrate bitcoin cash in an app, how can I generate Bitcoin Cash addresses programmatically, without relying on a 3rd party service, like Coinbase?

**Tags:** address, address-generation

> **Comments:**
> **username_1**: You can use the exact same method used to generate Bitcoin addresses.  There is one parameter to change, as far as I know, and that is the part of the "[path](https://github.com/axic/bip32-path)" that identifies the type of cryptocurrency the address is for.  
> **username_2**: mobile developer? which language? there are many libraries to generate bitcoin addresses.  
> **username_0**: @Adam: iOS, Swift would be preferable.  
> **username_0**: @DaveScotese: The exact method being.....?  
> **username_1**: @username_0 HD Protocol, HD Wallet, BIP32, which is described at https://bitcoin.org/en/glossary/hd-protocol with links to some helpful resources.  
> **username_1**: You might also want to see https://github.com/satoshilabs/slips/blob/master/slip-0044.md to verify that your addresses should be generated at the m/44/145/ derivation path  

---

## 1 answers

### Answer by username_2 on 2018-05-27. Score: 0

You can use the following library to generate bitcoin address using Swfit on IOS

<https://github.com/onmyway133/AddressGenerator>

Please note that the legacy bitcoin cash and bitcoin address is the same the only difference is the network.

if you're looking for cashAddr (qq address) format, take a look on these open source libraries:

<https://github.com/bitcoincashjs/cashaddrjs> (javascript)
<https://cashaddr.bitcoincash.org/>
<https://github.com/schancel/cashaddr-converter>

Original cashAddr algorithm (C++)

<https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/cashaddr.cpp>

it's pretty easy to read and understand, you can translate it to any language.

> **Comments:**
> **username_3**: I believe OP may be asking for a way to generate cashaddr addresses.  
> **username_2**: Thanks for mention that, I've edited my question by adding more details.  

---

