Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-nathani/bitpoint-blockchain
https://github.com/m-nathani/bitpoint-blockchain
bitpoint blockchain blockchain-demos blockchain-technology bootstrap javascript nodejs p2p socket-io typescript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/m-nathani/bitpoint-blockchain
- Owner: m-nathani
- License: apache-2.0
- Created: 2018-10-24T22:49:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T07:15:46.000Z (almost 2 years ago)
- Last Synced: 2024-03-15T20:21:17.901Z (9 months ago)
- Topics: bitpoint, blockchain, blockchain-demos, blockchain-technology, bootstrap, javascript, nodejs, p2p, socket-io, typescript
- Language: TypeScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BitPoint - For the People, by the Government.
## Transfer of Points by Government to public. How ?
```
1. Bills
2. Tax payer
3. Trafics Rules
4. Banking miscounduct
5. Physically or Mentally disabled persons points would be more then average. (Good to have)
6. Street Crime
7. Theft
8. Other Criminal Activites
9. Government setting a threshold to give access to a specific persons.
...
```## Benefits:
```
1. Bank Loans preference on the basis.
2. Discounts on goverment tickets.
3. Points used when applying for visa.
etc
```## Benefits of Blockchain for BitPoint
```
1. Greater transparency
Is a type of distributed ledger.
More accurate, consistent.
Available to all users.
2. Enhanced security by helping to prevent fraud and unauthorized activity
It is encrypted and linked to the previous transaction.
Decentralized.
Authentic/Trusted.
3. Improved traceability
Historical transaction of points can help to verify the authenticity and prevent fraud.
4. Reduced costs
For Datacenters
For managing security
Any fees that are paid to trusted third parties.
5. Immutability
once the data is pushed to the chain its very difficult to the change it back
```## Installation with Docker
```
docker-compose up --build
```## Installation
```
npm install
```### Useful commands
```
HTTP_PORT=3003 P2P_PORT=6003 npm start
```##### Get blockchain
```
curl http://localhost:3003/blocks
```##### Mine the block with a bitpoint transaction
```
curl -H "Content-type:application/json" --data '{"data" : { "to": "1234", "from": "4321", "point": 20, "reason": "bla bla" } }' http://localhost:3003/mineBlock
```##### Get points for a bitpoint user
```
curl http://localhost:3003/points/:nic
```##### Add peer
```
curl -H "Content-type:application/json" --data '{"peers" : ["ws://bitpoint-node-1:6003", "ws://bitpoint-node-3:6005"]}' http://localhost:3004/addPeers
```
#### Query connected peers
```
curl http://localhost:3003/peers
```#### A tutorial and credits for building a cryptocurrency
```
https://lhartikk.github.io/```