Skip to content

Commit

Permalink
feat: remove unnecessary sp1 risc0 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Dec 13, 2024
1 parent b49a9f2 commit 1a0705c
Show file tree
Hide file tree
Showing 127 changed files with 90 additions and 6,291 deletions.
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

0 comments on commit 1a0705c

Please sign in to comment.