Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariusvanderwijden/blob-me-baby
https://github.com/mariusvanderwijden/blob-me-baby
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mariusvanderwijden/blob-me-baby
- Owner: MariusVanDerWijden
- Created: 2023-05-19T08:45:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-27T17:58:16.000Z (about 1 year ago)
- Last Synced: 2024-11-02T06:23:06.344Z (13 days ago)
- Language: Go
- Size: 5 MB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blob-me-baby
Blob-me-baby is a simple Go-based web server that provides an API endpoint for sending arbitrary data and receiving well formed
blobs, commitments and proofs.## Installation
To install blob-me-baby, you need to have Go installed on your machine. Once Go is installed, you can clone the repository and build the project.
```bash
git clone https://github.com/MariusVanDerWijden/blob-me-baby.git
cd blob-me-baby
go build .
```## Usage
Once you've built the project, you can start the server with:
```bash
./blob-me-baby
```This will start the server on port 8080.
## Endpoints
Currently, blob-me-baby provides the following API endpoints: `/random` and `/encode/{data}`.
`/encode/{data}` is a GET endpoint that takes hexadecimal data as a path parameter and returns the computed commitments and proofs of the given data.
The data is first transformed into Ethereum blobs, then commitments and proofs are computed, and finally returned as a JSON response.