pandanite-crypto / pandanite

Simple, elegant, fast, Layer-1 blockchain based cryptocurrency written in 6k lines of C++
MIT License
30 stars 40 forks source link

BMB003: Implement programID related REST endpoints and modifications #99

Closed mr-pandabear closed 2 years ago

mr-pandabear commented 2 years ago

Update the following endpoints to take an optional programID get parameters:

Add an endpoint to submit a program: add_program that will take in JSON with a hexdump of the WASM code to execute the program and a SHA256 hash indicating the programID

Add an endpoint called get_program which will take in the SHA256 hash of a program and fetch it's contents