MIT IEEE URTC 2023. GSET 2023. Repository for "SeBRUS: Mitigating Data Poisoning in Crowdsourced Datasets with Blockchain". Using Ethereum smart contracts to stop AI security attacks on crowdsourced datasets.
While we have a page for users to contribute images to datasets, we don't have a way yet for users to contribute datasets. This page solves this problem.
Proposed Solution
Create a page with a form that allows users to add a dataset. This will require interfacing with the backend and the blockchain to ensure that all data is saved properly.
Action Items
[x] implement a form for information such as name and description. This would require a couple of states and <input> fields.
[x] once the input fields are filled, add a submit button that will make a request to the blockchain first to deploy a Dataset contract. This will require interfacing with the DatasetManager smart contract. This should provide a contract ABI for the new Dataset contract
[x] Once the new contract ABI is received first make a request to POST /api/abi to save the ABI and then take the resulting ABI id and make a request to POST /api/dataset to save information about the new dataset
[x] navigate back to the dashboard once this is completed using useNavigate
Resources
Reference some existing PRs and code for how to implement this.
Use Case
While we have a page for users to contribute images to datasets, we don't have a way yet for users to contribute datasets. This page solves this problem.
Proposed Solution
Create a page with a form that allows users to add a dataset. This will require interfacing with the backend and the blockchain to ensure that all data is saved properly.
Action Items
name
anddescription
. This would require a couple of states and<input>
fields.Dataset
contract. This will require interfacing with theDatasetManager
smart contract. This should provide a contract ABI for the newDataset
contract/api/abi
to save the ABI and then take the resulting ABI id and make a request to POST/api/dataset
to save information about the new datasetuseNavigate
Resources
Reference some existing PRs and code for how to implement this.
This is a :rocket: Feature Request