aries / net.globalid.aries.ledger / LedgerService

LedgerService

interface LedgerService

A service for communicating with the ledger.

Functions

lookupCredentialDefinitionJson

Retrieves the credential definition from the ledger.

abstract fun lookupCredentialDefinitionJson(agent: Agent, definitionId: String): Single<String>

lookupRevocationRegistryDefinitionJson

Retrieves the revocation registry definition from the ledger.

abstract fun lookupRevocationRegistryDefinitionJson(agent: Agent, registryId: String): Single<String>

lookupRevocationRegistryDeltaJson

Lookups the revocation registry delta for the given registry in the range specified.

abstract fun lookupRevocationRegistryDeltaJson(agent: Agent, revocationRegistryId: String, from: Long, to: Long): Single<String>

lookupSchema

Retrieves the schema from ledger

abstract fun lookupSchema(agent: Agent, schemaId: String): Single<LedgerSchema>

lookupSchemaJson

Retrieves the schema from ledger

abstract fun lookupSchemaJson(agent: Agent, schemaId: String): Single<String>

Inheritors

IndyLedgerService

Implements the ledger service using the indy-sdk.

class IndyLedgerService : LedgerService