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

Support sig mtp joined onchain circuit #71

Merged
merged 14 commits into from
Aug 29, 2023
Merged
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
.vscode
14 changes: 14 additions & 0 deletions circuits.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const (
AtomicQueryMTPCircuitID CircuitID = "credentialAtomicQueryMTP"
// AtomicQueryMTPV2CircuitID is a type for credentialAtomicQueryMTPV2.circom
AtomicQueryMTPV2CircuitID CircuitID = "credentialAtomicQueryMTPV2"
// AtomicQueryV3CircuitID is a type for credentialAtomicQueryV3.circom
AtomicQueryV3CircuitID CircuitID = "credentialAtomicQueryV3"
// AtomicQueryMTPV2OnChainCircuitID is a type for credentialAtomicQueryMTPV2OnChain.circom
AtomicQueryMTPV2OnChainCircuitID CircuitID = "credentialAtomicQueryMTPV2OnChain"
// AtomicQuerySigCircuitID is a type for credentialAttrQuerySig.circom
Expand All @@ -29,6 +31,8 @@ const (
AtomicQuerySigV2CircuitID CircuitID = "credentialAtomicQuerySigV2"
// AtomicQuerySigV2OnChainCircuitID is a type for credentialAttrQuerySigV2OnChain.circom
AtomicQuerySigV2OnChainCircuitID CircuitID = "credentialAtomicQuerySigV2OnChain"
// AtomicQueryV3OnChainCircuitID CircuitID = "credentialAtomicQueryV3OnChain"
AtomicQueryV3OnChainCircuitID CircuitID = "credentialAtomicQueryV3OnChain"
// JsonLDAtomicQueryMTPCircuitID is a type for credentialJsonLDAtomicQueryMTP.circom
JsonLDAtomicQueryMTPCircuitID CircuitID = "credentialJsonLDAtomicQueryMTP"
// SybilMTPCircuitID is a type for sybilMTP.circom
Expand Down Expand Up @@ -97,6 +101,11 @@ func init() {
Output: &AtomicQuerySigV2PubSignals{},
})

RegisterCircuit(AtomicQueryV3CircuitID, Data{
Input: AtomicQueryV3Inputs{},
Output: &AtomicQueryV3PubSignals{},
})

RegisterCircuit(AtomicQuerySigV2OnChainCircuitID, Data{
Input: AtomicQuerySigV2OnChainInputs{},
Output: &AtomicQuerySigV2OnChainPubSignals{},
Expand All @@ -116,6 +125,11 @@ func init() {
Input: SybilAtomicSigInputs{},
Output: &SybilAtomicSigPubSignals{},
})

RegisterCircuit(AtomicQueryV3OnChainCircuitID, Data{
Input: AtomicQueryV3OnChainInputs{},
Output: &AtomicQueryV3OnChainPubSignals{},
})
}

// BaseConfig base circuit's config, provides default configuration for default circuits
Expand Down
Loading