mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Use an enum for Coin/NetworkId
It originally wasn't an enum so software which had yet to update before an integration wouldn't error (as now enums are strictly typed). The strict typing is preferable though.
This commit is contained in:
@@ -28,9 +28,10 @@ other properties). The network's key is used for all coins on that network.
|
||||
|
||||
| Network | Curve | ID |
|
||||
|----------|-----------|----|
|
||||
| Bitcoin | Secp256k1 | 0 |
|
||||
| Ethereum | Secp256k1 | 1 |
|
||||
| Monero | Ed25519 | 2 |
|
||||
| Serai | Ristretto | 0 |
|
||||
| Bitcoin | Secp256k1 | 1 |
|
||||
| Ethereum | Secp256k1 | 2 |
|
||||
| Monero | Ed25519 | 3 |
|
||||
|
||||
### Coins
|
||||
|
||||
|
||||
Reference in New Issue
Block a user