Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove unnecessary sp1 risc0 dependencies #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:

workflow_dispatch:

env:
DCAP_RISCZERO_IMAGE_ID: "0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f"

jobs:
check:
strategy:
Expand Down
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/sp1-contracts"]
path = lib/sp1-contracts
url = https://github.com/succinctlabs/sp1-contracts
[submodule "lib/risc0-ethereum"]
path = lib/risc0-ethereum
url = https://github.com/risc0/risc0-ethereum
[submodule "lib/automata-on-chain-pccs"]
path = lib/automata-on-chain-pccs
url = https://github.com/automata-network/automata-on-chain-pccs
28 changes: 3 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ Then, add the following to your `remappings.txt`
### Example

```solidity
import "@automata-network/dcap-attestation/AutomataDcapAttestationFee.sol";
import "@automata-network/dcap-attestation/AutomataDcapAttestation.sol";

contract ExampleDcapContract {

AutomataDcapAttestationFee attest;
AutomataDcapAttestation attest;

constructor(address _attest) {
attest = AutomataDcapAttestationFee(_attest);
attest = AutomataDcapAttestation(_attest);
}

// On-Chain Attestation example
Expand All @@ -70,28 +70,6 @@ contract ExampleDcapContract {
}
}

// SNARK Attestation example
// ZkCoProcessorType can either be RiscZero or Succinct
function attestWithSnark(
bytes calldata output,
ZkCoProcessorType zkvm,
bytes calldata proofBytes
) public
{
(bool success, bytes memory output) = attest.verifyAndAttestWithZKProof(
output,
zkvm,
proofBytes
);

if (success) {
// ... implementation to handle successful attestations
} else {
string memory errorMessage = string(output);
// ... implementation to handle failed attestations
}
}

}
```

Expand Down
49 changes: 0 additions & 49 deletions broadcast/AttestationScript.s.sol/1/configVerifier-latest.json

This file was deleted.

50 changes: 0 additions & 50 deletions broadcast/AttestationScript.s.sol/1/configureZk-latest.json

This file was deleted.

62 changes: 0 additions & 62 deletions broadcast/AttestationScript.s.sol/1/deployEntrypoint-latest.json

This file was deleted.

55 changes: 0 additions & 55 deletions broadcast/AttestationScript.s.sol/10/configVerifier-latest.json

This file was deleted.

Loading