You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@iden3/contracts

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iden3/contracts - npm Package Compare versions

Comparing version
1.4.7
to
1.4.8
+36
-7
build/contracts/INonMerklizedIssuer.json

@@ -44,5 +44,34 @@ {

{
"internalType": "string",
"components": [
{
"internalType": "string",
"name": "id",
"type": "string"
},
{
"internalType": "string",
"name": "_type",
"type": "string"
}
],
"internalType": "struct INonMerklizedIssuer.CredentialSchema",
"name": "credentialSchema",
"type": "string"
"type": "tuple"
},
{
"components": [
{
"internalType": "string",
"name": "id",
"type": "string"
},
{
"internalType": "string",
"name": "_type",
"type": "string"
}
],
"internalType": "struct INonMerklizedIssuer.DisplayMethod",
"name": "displayMethod",
"type": "tuple"
}

@@ -82,3 +111,3 @@ ],

],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -88,3 +117,3 @@ },

"inputs": [],
"name": "getCredentialProtocolVersion",
"name": "getCredentialAdapterVersion",
"outputs": [

@@ -97,3 +126,3 @@ {

],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -109,3 +138,3 @@ },

],
"name": "listUserCredentialIds",
"name": "getUserCredentialIds",
"outputs": [

@@ -118,3 +147,3 @@ {

],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -121,0 +150,0 @@ }

@@ -8,3 +8,3 @@ {

"inputs": [],
"name": "CREDENTIAL_PROTOCOL_VERSION",
"name": "CREDENTIAL_ADAPTER_VERSION",
"outputs": [

@@ -24,2 +24,230 @@ {

"internalType": "uint256",
"name": "claimIndexHash",
"type": "uint256"
}
],
"name": "getClaimProof",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimIndexHash",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
}
],
"name": "getClaimProofByRoot",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimIndexHash",
"type": "uint256"
}
],
"name": "getClaimProofWithStateInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootsRoot",
"type": "uint256"
}
],
"internalType": "struct IdentityLib.StateInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getClaimsTreeRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_userId",

@@ -59,5 +287,34 @@ "type": "uint256"

{
"internalType": "string",
"components": [
{
"internalType": "string",
"name": "id",
"type": "string"
},
{
"internalType": "string",
"name": "_type",
"type": "string"
}
],
"internalType": "struct INonMerklizedIssuer.CredentialSchema",
"name": "credentialSchema",
"type": "string"
"type": "tuple"
},
{
"components": [
{
"internalType": "string",
"name": "id",
"type": "string"
},
{
"internalType": "string",
"name": "_type",
"type": "string"
}
],
"internalType": "struct INonMerklizedIssuer.DisplayMethod",
"name": "displayMethod",
"type": "tuple"
}

@@ -97,3 +354,3 @@ ],

],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -103,3 +360,3 @@ },

"inputs": [],
"name": "getCredentialProtocolVersion",
"name": "getCredentialAdapterVersion",
"outputs": [

@@ -116,5 +373,793 @@ {

{
"inputs": [],
"name": "getId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getIsOldStateGenesis",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestPublishedClaimsRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestPublishedRevocationsRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestPublishedRootsRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestPublishedState",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "revocationNonce",
"type": "uint64"
}
],
"name": "getRevocationProof",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "revocationNonce",
"type": "uint64"
},
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
}
],
"name": "getRevocationProofByRoot",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "revocationNonce",
"type": "uint64"
}
],
"name": "getRevocationProofWithStateInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootsRoot",
"type": "uint256"
}
],
"internalType": "struct IdentityLib.StateInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
}
],
"name": "getRevocationStatus",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimsTreeRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationTreeRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootOfRoots",
"type": "uint256"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.IdentityStateRoots",
"name": "issuer",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.Proof",
"name": "mtp",
"type": "tuple"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.CredentialStatus",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "nonce",
"type": "uint64"
}
],
"name": "getRevocationStatusByIdAndState",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimsTreeRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationTreeRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootOfRoots",
"type": "uint256"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.IdentityStateRoots",
"name": "issuer",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.Proof",
"name": "mtp",
"type": "tuple"
}
],
"internalType": "struct IOnchainCredentialStatusResolver.CredentialStatus",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRevocationsTreeRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rootsTreeRoot",
"type": "uint256"
}
],
"name": "getRootProof",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "claimsTreeRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
}
],
"name": "getRootProofByRoot",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rootsTreeRoot",
"type": "uint256"
}
],
"name": "getRootProofWithStateInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "root",
"type": "uint256"
},
{
"internalType": "bool",
"name": "existence",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "siblings",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bool",
"name": "auxExistence",
"type": "bool"
},
{
"internalType": "uint256",
"name": "auxIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auxValue",
"type": "uint256"
}
],
"internalType": "struct SmtLib.Proof",
"name": "",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootsRoot",
"type": "uint256"
}
],
"internalType": "struct IdentityLib.StateInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "state",
"type": "uint256"
}
],
"name": "getRootsByState",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "claimsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "revocationsRoot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rootsRoot",
"type": "uint256"
}
],
"internalType": "struct IdentityLib.Roots",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRootsTreeRoot",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSmtDepth",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_userId",

@@ -124,3 +1169,3 @@ "type": "uint256"

],
"name": "listUserCredentialIds",
"name": "getUserCredentialIds",
"outputs": [

@@ -133,4 +1178,36 @@ {

],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stateContractAddr",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}

@@ -137,0 +1214,0 @@ ],

+1
-1
{
"name": "@iden3/contracts",
"description": "Smart Contract library for Solidity",
"version": "1.4.7",
"version": "1.4.8",
"files": [

@@ -6,0 +6,0 @@ "**/*.sol",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet