No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
dark-crystal-secrets HTTP API
blockades
JavaScript
I've been corresponding with folk about making our code more interoperable and enabling our secret verification to be accessible by other applications. We could do with a HTTP API for `/lib/secrets-wrapper`. For the wrapper in its [current form](https://github.com/blockades/scuttle-dark-crystal/tree/master/lib/secrets-wrapper), we can open up the following end-points (and there are likely more we could add over time as we extend the functionality of Dark Crystal):
```
POST /v1/secret/share
POST /v1/secret/combine
POST /v1/shard/verify
POST /v2/secret/share
POST /v2/secret/verify
POST /v2/secret/combine
POST /v2/shard/verify
```
Here's an example of how one could use this API and what response we'd send back...
```js
// /v1/secret/share
var params = {
secret: "X marks the spot",
quorum: 3,
shards: 5
}
request('http://localhost:8187/v1/secret/share', params, (err, response) => {
// returns a JSON response object with the shards as the response body
console.log(response)
// {
// code: 200,
// body: [
// '8014743d37c565db0dce12e4994ebfe444a',
// '8024cf89c0f40debaae0684c5dacf3e581c',
// '8030bbb4f7316830a73e7cc8c2124af1c21',
// '804b708b9e5172c52624f6ad67d9368d7e5',
// '805f04b6a994171e2bfae229f8678f993d8'
// ]
//
})
```
In addition, we could open up verifying secrets (which currently does exist but is closed off within the v2 wrapper (its a local function).
This would be brilliant as it would expose our secrets wrapper to any and all other languages. It can then be deployed as a component of another application (we could package into a container), rather than us having to port into other languages.
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
Setup your profile
Our tools are based on the principles of earn (💰), learn (📖), and meet (💬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Back
Next
Save
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email:
Email
Back
Save