ISP
Version 1.0.0-beta18
Events
SchemaRegistered
AttestationMade
AttestationRevoked
OffchainAttestationMade
OffchainAttestationRevoked
Errors
SchemaNonexistent
0x38f8c6c4
SchemaWrongRegistrant
0x71984561
AttestationIrrevocable
0x8ac42f49
AttestationNonexistent
0x54681a13
AttestationInvalidDuration
0xa65e02ed
AttestationAlreadyRevoked
0xd8c3da86
AttestationWrongAttester
0xa9ad2007
OffchainAttestationExists
0xc83e3cdf
OffchainAttestationNonexistent
0xa006519a
OffchainAttestationAlreadyRevoked
0xa0671d20
InvalidDelegateSignature
0xfdf4e6f9
LegacySPRequired
0x5c34b9cc
Functions
register
Registers a Schema.
Emits SchemaRegistered
.
Parameters
schema
struct Schema
See Schema
.
delegateSignature
bytes
Return Values
schemaId
uint64
The assigned ID of the registered schema.
attest
Makes an attestation.
Emits AttestationMade
.
Parameters
attestation
struct Attestation
See Attestation
.
indexingKey
string
Used by the frontend to aid indexing.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated attestation. Use ""
or 0x
otherwise.
extraData
bytes
This is forwarded to the resolver directly.
Return Values
attestationId
uint64
The assigned ID of the attestation.
attest
Makes an attestation where the schema hook expects ETH payment.
Emits AttestationMade
.
Parameters
attestation
struct Attestation
See Attestation
.
resolverFeesETH
uint256
Amount of funds to send to the hook.
indexingKey
string
Used by the frontend to aid indexing.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated attestation. Use ""
or 0x
otherwise.
extraData
bytes
This is forwarded to the resolver directly.
Return Values
attestationId
uint64
The assigned ID of the attestation.
attest
Makes an attestation where the schema hook expects ERC20 payment.
Emits AttestationMade
.
Parameters
attestation
struct Attestation
See Attestation
.
resolverFeesERC20Token
contract IERC20
ERC20 token address used for payment.
resolverFeesERC20Amount
uint256
Amount of funds to send to the hook.
indexingKey
string
Used by the frontend to aid indexing.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated attestation. Use ""
or 0x
otherwise.
extraData
bytes
This is forwarded to the resolver directly.
Return Values
attestationId
uint64
The assigned ID of the attestation.
attestOffchain
Timestamps an off-chain data ID.
Emits OffchainAttestationMade
.
Parameters
offchainAttestationId
string
The off-chain data ID.
delegateAttester
address
An optional delegated attester that authorized the caller to attest on their behalf if this is a delegated attestation. Use address(0)
otherwise.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated attestation. Use ""
or 0x
otherwise. Use ""
or 0x
otherwise.
revoke
Revokes an existing revocable attestation.
Emits AttestationRevoked
. Must be called by the attester.
Parameters
attestationId
uint64
An existing attestation ID.
reason
string
The revocation reason. This is only emitted as an event to save gas.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated revocation.
extraData
bytes
This is forwarded to the resolver directly.
revoke
Revokes an existing revocable attestation where the schema hook expects ERC20 payment.
Emits AttestationRevoked
. Must be called by the attester.
Parameters
attestationId
uint64
An existing attestation ID.
reason
string
The revocation reason. This is only emitted as an event to save gas.
resolverFeesETH
uint256
Amount of funds to send to the hook.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated revocation.
extraData
bytes
This is forwarded to the resolver directly.
revoke
Revokes an existing revocable attestation where the schema hook expects ERC20 payment.
Emits AttestationRevoked
. Must be called by the attester.
Parameters
attestationId
uint64
An existing attestation ID.
reason
string
The revocation reason. This is only emitted as an event to save gas.
resolverFeesERC20Token
contract IERC20
ERC20 token address used for payment.
resolverFeesERC20Amount
uint256
Amount of funds to send to the hook.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated revocation.
extraData
bytes
This is forwarded to the resolver directly.
revokeOffchain
Revokes an existing offchain attestation.
Emits OffchainAttestationRevoked
. Must be called by the attester.
Parameters
offchainAttestationId
string
An existing attestation ID.
reason
string
The revocation reason. This is only emitted as an event to save gas.
delegateSignature
bytes
An optional ECDSA delegateSignature if this is a delegated revocation.
registerBatch
Batch registers a Schema.
attestBatch
Batch attests.
attestBatch
Batch attests where the schema hook expects ETH payment.
attestBatch
Batch attests where the schema hook expects ERC20 payment.
attestOffchainBatch
Batch timestamps off-chain data IDs.
revokeBatch
Batch revokes revocable on-chain attestations.
revokeBatch
Batch revokes revocable on-chain attestations where the schema hook expects ETH payment.
revokeBatch
Batch revokes revocable on-chain attestations where the schema hook expects ERC20 payment.
revokeOffchainBatch
Batch revokes off-chain attestations.
getSchema
Returns the specified Schema
.
getAttestation
Returns the specified Attestation
.
getOffchainAttestation
Returns the specified OffchainAttestation
.
getDelegatedRegisterHash
Returns the hash that will be used to authorize a delegated registration.
getDelegatedRegisterBatchHash
Returns the hash that will be used to authorize a delegated batch registration.
getDelegatedAttestHash
Returns the hash that will be used to authorize a delegated attestation.
getDelegatedAttestBatchHash
Returns the hash that will be used to authorize a delegated batch attestation.
getDelegatedOffchainAttestHash
Returns the hash that will be used to authorize a delegated offchain attestation.
getDelegatedOffchainAttestBatchHash
Returns the hash that will be used to authorize a delegated batch offchain attestation.
getDelegatedRevokeHash
Returns the hash that will be used to authorize a delegated revocation.
getDelegatedRevokeBatchHash
Returns the hash that will be used to authorize a delegated batch revocation.
getDelegatedOffchainRevokeHash
Returns the hash that will be used to authorize a delegated offchain revocation.
getDelegatedOffchainRevokeBatchHash
Returns the hash that will be used to authorize a delegated batch offchain revocation.
schemaCounter
Returns the current schema counter. This is incremented for each Schema
registered.
attestationCounter
Returns the current on-chain attestation counter. This is incremented for each Attestation
made.
Last updated
Was this helpful?