Smart Contracts (Testnet)

Module: credential-registry-storage
back to overview
credential-registry-storage
Methods: 7
Instances: 2
Initialization

Parameters
[
  {
    "public_key": "<String of size 64 containing lowercase hex characters.>"
  }
]
Errors
None
Event
{
  "Enum": [
    {
      "CredentialRegistered": [
        {
          "public_key": "<String of size 64 containing lowercase hex characters.>"
        }
      ]
    }
  ]
}
Methods

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "CredentialAlreadyRegisteredForGivenPublicKey": []
    },
    {
      "WrongSignature": []
    },
    {
      "WrongContract": []
    },
    {
      "Expired": []
    },
    {
      "SerializationError": []
    }
  ]
}
Return
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        {
          "encrypted_credential": [
            "<UInt8>"
          ],
          "metadata": [
            "<UInt16>"
          ]
        }
      ]
    }
  ]
}

Parameters
{
  "contract_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "encrypted_credential": [
    "<UInt8>"
  ],
  "metadata": [
    "<UInt16>"
  ],
  "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
None
Return
None

Parameters
{
  "data": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "encrypted_credential": [
      "<UInt8>"
    ],
    "metadata": [
      "<UInt16>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "public_key": "<String of size 64 containing lowercase hex characters.>",
  "signature": "<String of size 128 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "CredentialAlreadyRegisteredForGivenPublicKey": []
    },
    {
      "WrongSignature": []
    },
    {
      "WrongContract": []
    },
    {
      "Expired": []
    },
    {
      "SerializationError": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership