[][src]Module indyrs::ledger

Functions

append_txn_author_agreement_acceptance_to_request

Append transaction author agreement acceptance data to a request. This function should be called before signing and sending a request if there is any transaction author agreement set on the Ledger.

build_acceptance_mechanism_request

Builds a SET_TXN_AUTHR_AGRMT_AML request. Request to add a new acceptance mechanism for transaction author agreement. Acceptance Mechanism is a description of the ways how the user may accept a transaction author agreement.

build_attrib_request

Builds an ATTRIB request. Request to add attribute to a NYM record.

build_auth_rule_request

Builds a AUTH_RULE request. Request to change authentication rules for a ledger transaction.

build_cred_def_request

Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key), that Issuer creates for a particular Credential Schema.

build_get_acceptance_mechanism_request

Builds a GET_TXN_AUTHR_AGRMT_AML request. Request to get acceptance mechanisms from the ledger valid for specified time or the latest one.

build_get_attrib_request

Builds a GET_ATTRIB request. Request to get information about an Attribute for the specified DID.

build_get_auth_rule_request

Builds a GET_AUTH_RULE request. Request to get authentication rules for a ledger transaction.

build_get_cred_def_request

Builds a GET_CRED_DEF request. Request to get a Credential Definition (in particular, public key), that Issuer creates for a particular Credential Schema.

build_get_ddo_request

Builds a request to get a DDO.

build_get_nym_request

Builds a GET_NYM request. Request to get information about a DID (NYM).

build_get_revoc_reg_def_request

Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition, that Issuer creates for a particular Credential Definition.

build_get_revoc_reg_delta_request

Builds a GET_REVOC_REG_DELTA request. Request to get the delta of the accumulated state of the Revocation Registry. The Delta is defined by from and to timestamp fields. If from is not specified, then the whole state till to will be returned.

build_get_revoc_reg_request

Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry by ID. The state is defined by the given timestamp.

build_get_schema_request

Builds a GET_SCHEMA request. Request to get Credential's Schema.

build_get_txn_author_agreement_request

Builds a GET_TXN_AUTHR_AGRMT request. Request to get a specific Transaction Author Agreement from the ledger.

build_get_txn_request

Builds a GET_TXN request. Request to get any transaction by its seq_no.

build_get_validator_info_request

Builds a GET_VALIDATOR_INFO request.

build_node_request

Builds a NODE request. Request to add a new node to the pool, or updates existing in the pool.

build_nym_request

Builds a NYM request. Request to create a new NYM record for a specific user.

build_pool_config_request

Builds a POOL_CONFIG request. Request to change Pool's configuration.

build_pool_restart_request

Builds a POOL_RESTART request.

build_pool_upgrade_request

Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee). It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).

build_revoc_reg_def_request

Builds a REVOC_REG_DEF request. Request to add the definition of revocation registry to an exists credential definition.

build_revoc_reg_entry_request

Builds a REVOC_REG_ENTRY request. Request to add the RevocReg entry containing the new accumulator value and issued/revoked indices. This is just a delta of indices, not the whole list. So, it can be sent each time a new credential is issued/revoked.

build_schema_request

Builds a SCHEMA request. Request to add Credential's schema.

build_txn_author_agreement_request

Builds a TXN_AUTHR_AGRMT request. Request to add a new version of Transaction Author Agreement to the ledger.

get_response_metadata

Parse transaction response to fetch metadata. The important use case for this method is validation of Node's response freshens.

multi_sign_request

Multi signs request message.

parse_get_cred_def_response

Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.

parse_get_revoc_reg_def_response

Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.

parse_get_revoc_reg_delta_response

Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.

parse_get_revoc_reg_response

Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.

parse_get_schema_response

Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API.

sign_and_submit_request

Signs and submits request message to validator pool.

sign_request

Signs request message.

submit_action
submit_request

Publishes request message to validator pool (no signing, unlike sign_and_submit_request).