https://github.com/gotneb/bcapp-api
A BCAPP's api written using Spark web framework.
https://github.com/gotneb/bcapp-api
Last synced: 9 months ago
JSON representation
A BCAPP's api written using Spark web framework.
- Host: GitHub
- URL: https://github.com/gotneb/bcapp-api
- Owner: gotneb
- Created: 2022-08-06T18:20:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-02T13:18:15.000Z (over 3 years ago)
- Last Synced: 2025-02-02T16:49:46.909Z (11 months ago)
- Language: Java
- Homepage:
- Size: 23.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BCAPP
A BCAPP's api library written using [Spark Web Framework.](https://sparkjava.com/)
:white_circle: All of them return in a JSON format.
### :bookmark: ECC's endpoints
modp
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/modp//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| n | Big Integer |
| p1 | Big Integer |
inverse
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/inverse//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| r | Big Integer |
| p | Big Integer |
doublep
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/doublep//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| x | Big Integer |
| y | Big Integer |
addp
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/addp////
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| x1 | Big Integer |
| y1 | Big Integer |
| x2 | Big Integer |
| y2 | Big Integer |
eccnp
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/eccnp///
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| n | Big Integer |
| x | Big Integer |
| y | Big Integer |
### :bookmark: TonelliShanks's endpoints
pow_mod
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/pow_mod///
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| base | Big Integer |
| expoent | Big Integer |
| modulus | Big Integer |
sqrtcf
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/sqrtcf//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| n | Big Integer |
| p | Big Integer |
### :bookmark: EcdsaSecretus' endpoints
knum
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/knum///
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| HA4 | String |
| PVTKEY | String |
| e | String |
ecdsabsv
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/ecdsabsv///
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| e | String |
| PVTKEY | String |
| HA4 | String |
- [ ] ECDSAVerify3 :warning:
- [ ] ECDSAVerify :warning:
### :bookmark: Keygen's endpoints
publicKey
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/public-key/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
stringToHEXString
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/string-to-hex-string/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
publicKeyHEX
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/public-key-hex/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
publicKeyCompSEC
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/public-key-comp-sec/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
publicKeyUncompSEC
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/public-key-uncomp-sec/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
pvtKey2
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/pvt-key-2/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
secKey
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/sec-key/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
secKeyHashToBigInt
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/sec-key-hash-to-big-int/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
HashToBigInt
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/hash-to-big-int/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
HashToBigIntWIF
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/hash-to-big-int-wif/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| text | String |
encKeyToHexSTR
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/enc-key-to-hex-str/"", ""
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| point | BigInteger[] |
encKeyHalfToHexSTR
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/enc-key-half-to-hex-str/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| point | BigInteger |
encKeyHalfToByteSTR
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/enc-key-half-to-byte-str/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| point | BigInteger |
pubKeyRev
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/pub-key-rev/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkey | String |
pubKeyCompSECRev
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/pub-key-comp-sec-rev/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkey | String |
pubKeyUncompSECRev
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/pub-key-uncomp-sec-rev/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkey | String |
bsvWallet
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/bsv-wallet/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkeyCOD | String |
bsvWalletFull
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/bsv-wallet-full//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkeyCOD | String |
| compressed | Boolean |
addRMD
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/addRMD/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| hashKey | String |
getAddressFromRMDHash
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/get-address-from-rmd-hash/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| ripemdHash | String |
bsvWalletRMD160
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/bsv-wallet-rmd160//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkeyCOD | String |
| compressed | Boolean |
bsvPKvsWALLET
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/bsv-pk-vs-wallet//
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| pubkeyCOD | String |
| walletRMD | String |
sigDERrev
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/sig-der-rev/
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| signECDSA | String |
sigDER
#### HTTP Request
```
GET https://bcapp-spark.herokuapp.com/sig-der/"", ""
```
#### URL Parameters
| Parameter | Description |
| --- | --- |
| signECDSA | BigInteger[] |
## :memo: TODO
- [x] Ecc
- [x] TonelliShanks
- [x] EcdsaSecretus
- [x] Keygen
- [ ] Ripemd160
- [ ] SHA256