Connecting: users' wallets and your central wallet
There are two kinds of wallet, and they connect differently:
- A wallet inside your users' app (one wallet per user, the mnemonic on the user's device): connect directly. Do not set
proxyand do not ship any key in the app. The public endpoints in the configuration (section 5.2) are open. - Your central wallet (on your server, holding the balance you pay from): connect through the IBIRAPAY front door with an API key and secret. This lets IBIRAPAY measure your use and revoke access.
The rest of this section is for the central wallet.
- Open https://ibirapay.com/spark, fill in the company, your name and e-mail, and accept the terms.
- Confirm the e-mail (the link is valid for 24 hours). The page then shows your first key once: proxy host and port,
API key (
ik_..., goes inusername) and secret (sk_..., goes inpassword). Copy it into your secret store. IBIRAPAY keeps only a hash. - The e-mail you receive afterwards has a link to your account page, where you create up to 5 active keys (for example one per app or environment) and revoke them. Treat that link like a password. The page also shows your account ID, which goes in the text a wallet signs when you register it (section 5.5). A key has a type, chosen when you create it: a proxy key (the SOCKS5 login for the central wallet, described here) or a registration key (for the registration API of section 5.5; it does not open the proxy, and a proxy key does not open the registration API).
The API key and secret are a SOCKS5 login (API key = username, secret = password) for the IBIRAPAY front door (proxy.ibirapay.com, port 1080). It identifies your company, lets
IBIRAPAY measure your use, and can be revoked at once (open connections are cut within about 15 seconds). It is not what
protects your users' money: that is the mnemonic. SOCKS5 sends the secret without encryption of its own, so rotate a key
that may have leaked. Use one key per server and per environment, and never put it in an app that runs on your users' devices
(see section 10).