partition stringclasses 3
values | func_name stringlengths 1 134 | docstring stringlengths 1 46.9k | path stringlengths 4 223 | original_string stringlengths 75 104k | code stringlengths 75 104k | docstring_tokens listlengths 1 1.97k | repo stringlengths 7 55 | language stringclasses 1
value | url stringlengths 87 315 | code_tokens listlengths 19 28.4k | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
train | prover_search_credentials_for_proof_req | Search for credentials matching the given proof request.
Instead of immediately returning of fetched credentials this call returns search_handle that can be used later
to fetch records by small batches (with prover_fetch_credentials_for_proof_req).
:param wallet_handle: wallet handler (created by open_wal... | wrappers/python/indy/anoncreds.py | async def prover_search_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str,
extra_query_json: Optional[str]) -> int:
"""
Search for credentials matching the given proof request.
Instead of... | async def prover_search_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str,
extra_query_json: Optional[str]) -> int:
"""
Search for credentials matching the given proof request.
Instead of... | [
"Search",
"for",
"credentials",
"matching",
"the",
"given",
"proof",
"request",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L934-L993 | [
"async",
"def",
"prover_search_credentials_for_proof_req",
"(",
"wallet_handle",
":",
"int",
",",
"proof_request_json",
":",
"str",
",",
"extra_query_json",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"int",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | prover_create_proof | Creates a proof according to the given proof request
Either a corresponding credential with optionally revealed attributes or self-attested attribute must be provided
for each requested attribute (see indy_prover_get_credentials_for_pool_req).
A proof request may request multiple credentials from different ... | wrappers/python/indy/anoncreds.py | async def prover_create_proof(wallet_handle: int,
proof_req_json: str,
requested_credentials_json: str,
master_secret_name: str,
schemas_json: str,
credential_defs_json: ... | async def prover_create_proof(wallet_handle: int,
proof_req_json: str,
requested_credentials_json: str,
master_secret_name: str,
schemas_json: str,
credential_defs_json: ... | [
"Creates",
"a",
"proof",
"according",
"to",
"the",
"given",
"proof",
"request",
"Either",
"a",
"corresponding",
"credential",
"with",
"optionally",
"revealed",
"attributes",
"or",
"self",
"-",
"attested",
"attribute",
"must",
"be",
"provided",
"for",
"each",
"re... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1073-L1244 | [
"async",
"def",
"prover_create_proof",
"(",
"wallet_handle",
":",
"int",
",",
"proof_req_json",
":",
"str",
",",
"requested_credentials_json",
":",
"str",
",",
"master_secret_name",
":",
"str",
",",
"schemas_json",
":",
"str",
",",
"credential_defs_json",
":",
"st... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | verifier_verify_proof | Verifies a proof (of multiple credential).
All required schemas, public keys and revocation registries must be provided.
:param proof_request_json:
{
"name": string,
"version": string,
"nonce": string,
"requested_attributes": { // set of requested a... | wrappers/python/indy/anoncreds.py | async def verifier_verify_proof(proof_request_json: str,
proof_json: str,
schemas_json: str,
credential_defs_json: str,
rev_reg_defs_json: str,
rev_regs_json: s... | async def verifier_verify_proof(proof_request_json: str,
proof_json: str,
schemas_json: str,
credential_defs_json: str,
rev_reg_defs_json: str,
rev_regs_json: s... | [
"Verifies",
"a",
"proof",
"(",
"of",
"multiple",
"credential",
")",
".",
"All",
"required",
"schemas",
"public",
"keys",
"and",
"revocation",
"registries",
"must",
"be",
"provided",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1247-L1364 | [
"async",
"def",
"verifier_verify_proof",
"(",
"proof_request_json",
":",
"str",
",",
"proof_json",
":",
"str",
",",
"schemas_json",
":",
"str",
",",
"credential_defs_json",
":",
"str",
",",
"rev_reg_defs_json",
":",
"str",
",",
"rev_regs_json",
":",
"str",
")",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | create_revocation_state | Create revocation state for a credential in the particular time moment.
:param blob_storage_reader_handle: configuration of blob storage reader handle that will allow to read revocation tails
:param rev_reg_def_json: revocation registry definition json
:param rev_reg_delta_json: revocation registry definit... | wrappers/python/indy/anoncreds.py | async def create_revocation_state(blob_storage_reader_handle: int,
rev_reg_def_json: str,
rev_reg_delta_json: str,
timestamp: int,
cred_rev_id: str) -> str:
"""
Create revocati... | async def create_revocation_state(blob_storage_reader_handle: int,
rev_reg_def_json: str,
rev_reg_delta_json: str,
timestamp: int,
cred_rev_id: str) -> str:
"""
Create revocati... | [
"Create",
"revocation",
"state",
"for",
"a",
"credential",
"in",
"the",
"particular",
"time",
"moment",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1367-L1416 | [
"async",
"def",
"create_revocation_state",
"(",
"blob_storage_reader_handle",
":",
"int",
",",
"rev_reg_def_json",
":",
"str",
",",
"rev_reg_delta_json",
":",
"str",
",",
"timestamp",
":",
"int",
",",
"cred_rev_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | sign_and_submit_request | Signs and submits request message to validator pool.
Adds submitter information to passed request json, signs it with submitter
sign key (see wallet_sign), and sends signed request message
to validator pool (see write_request).
:param pool_handle: pool handle (created by open_pool_ledger).
:param ... | wrappers/python/indy/ledger.py | async def sign_and_submit_request(pool_handle: int,
wallet_handle: int,
submitter_did: str,
request_json: str) -> str:
"""
Signs and submits request message to validator pool.
Adds submitter information to... | async def sign_and_submit_request(pool_handle: int,
wallet_handle: int,
submitter_did: str,
request_json: str) -> str:
"""
Signs and submits request message to validator pool.
Adds submitter information to... | [
"Signs",
"and",
"submits",
"request",
"message",
"to",
"validator",
"pool",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L9-L52 | [
"async",
"def",
"sign_and_submit_request",
"(",
"pool_handle",
":",
"int",
",",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"request_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | submit_request | Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool handle (created by open_pool_ledger).
:param request_json: Request data json.
:return: Request res... | wrappers/python/indy/ledger.py | async def submit_request(pool_handle: int,
request_json: str) -> str:
"""
Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool... | async def submit_request(pool_handle: int,
request_json: str) -> str:
"""
Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool... | [
"Publishes",
"request",
"message",
"to",
"validator",
"pool",
"(",
"no",
"signing",
"unlike",
"sign_and_submit_request",
")",
".",
"The",
"request",
"is",
"sent",
"to",
"the",
"validator",
"pool",
"as",
"is",
".",
"It",
"s",
"assumed",
"that",
"it",
"s",
"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L55-L85 | [
"async",
"def",
"submit_request",
"(",
"pool_handle",
":",
"int",
",",
"request_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"submit_request: >>> pool_handle: %r, reque... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | submit_action | Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
GET_VALIDATOR_INFO
The request is sent to the nodes as is. It's assumed that it's already prepared.
:param pool_handle: pool handle (created by open_pool_ledger).
:param request_js... | wrappers/python/indy/ledger.py | async def submit_action(pool_handle: int,
request_json: str,
nodes: Optional[str],
timeout: Optional[int]) -> str:
"""
Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
... | async def submit_action(pool_handle: int,
request_json: str,
nodes: Optional[str],
timeout: Optional[int]) -> str:
"""
Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
... | [
"Send",
"action",
"to",
"particular",
"nodes",
"of",
"validator",
"pool",
".",
"The",
"list",
"of",
"requests",
"can",
"be",
"send",
":",
"POOL_RESTART",
"GET_VALIDATOR_INFO",
"The",
"request",
"is",
"sent",
"to",
"the",
"nodes",
"as",
"is",
".",
"It",
"s"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L88-L134 | [
"async",
"def",
"submit_action",
"(",
"pool_handle",
":",
"int",
",",
"request_json",
":",
"str",
",",
"nodes",
":",
"Optional",
"[",
"str",
"]",
",",
"timeout",
":",
"Optional",
"[",
"int",
"]",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_get_ddo_request | Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Identity stored in secured Wallet.
:return: Request result as json. | wrappers/python/indy/ledger.py | async def build_get_ddo_request(submitter_did: Optional[str],
target_did: str) -> str:
"""
Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Ide... | async def build_get_ddo_request(submitter_did: Optional[str],
target_did: str) -> str:
"""
Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Ide... | [
"Builds",
"a",
"request",
"to",
"get",
"a",
"DDO",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L217-L246 | [
"async",
"def",
"build_get_ddo_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"target_did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_g... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_nym_request | Builds a NYM request.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param target_did: Target DID as base58-encoded string for 16 or 32 bit DID value.
:param ver_key: Target identity verification key as base58-encoded string.
:param alias: NYM's alias.
:param role: Role of a ... | wrappers/python/indy/ledger.py | async def build_nym_request(submitter_did: str,
target_did: str,
ver_key: Optional[str],
alias: Optional[str],
role: Optional[str]) -> str:
"""
Builds a NYM request.
:param submitter_did: DID of ... | async def build_nym_request(submitter_did: str,
target_did: str,
ver_key: Optional[str],
alias: Optional[str],
role: Optional[str]) -> str:
"""
Builds a NYM request.
:param submitter_did: DID of ... | [
"Builds",
"a",
"NYM",
"request",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L249-L299 | [
"async",
"def",
"build_nym_request",
"(",
"submitter_did",
":",
"str",
",",
"target_did",
":",
"str",
",",
"ver_key",
":",
"Optional",
"[",
"str",
"]",
",",
"alias",
":",
"Optional",
"[",
"str",
"]",
",",
"role",
":",
"Optional",
"[",
"str",
"]",
")",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_attrib_request | Builds an ATTRIB request. Request to add attribute to a NYM record.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param target_did: Target DID as base58-encoded string for 16 or 32 bit DID value.
:param xhash: (Optional) Hash of attribute data.
:param raw: (Optional) Json, where... | wrappers/python/indy/ledger.py | async def build_attrib_request(submitter_did: str,
target_did: str,
xhash: Optional[str],
raw: Optional[str],
enc: Optional[str]) -> str:
"""
Builds an ATTRIB request. Request to add attri... | async def build_attrib_request(submitter_did: str,
target_did: str,
xhash: Optional[str],
raw: Optional[str],
enc: Optional[str]) -> str:
"""
Builds an ATTRIB request. Request to add attri... | [
"Builds",
"an",
"ATTRIB",
"request",
".",
"Request",
"to",
"add",
"attribute",
"to",
"a",
"NYM",
"record",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L302-L346 | [
"async",
"def",
"build_attrib_request",
"(",
"submitter_did",
":",
"str",
",",
"target_did",
":",
"str",
",",
"xhash",
":",
"Optional",
"[",
"str",
"]",
",",
"raw",
":",
"Optional",
"[",
"str",
"]",
",",
"enc",
":",
"Optional",
"[",
"str",
"]",
")",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | parse_get_schema_response | Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema
attrNames: array of attribute name strings
name: Schema's name string
... | wrappers/python/indy/ledger.py | async def parse_get_schema_response(get_schema_response: str) -> (str, str):
"""
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema... | async def parse_get_schema_response(get_schema_response: str) -> (str, str):
"""
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema... | [
"Parse",
"a",
"GET_SCHEMA",
"response",
"to",
"get",
"Schema",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L499-L529 | [
"async",
"def",
"parse_get_schema_response",
"(",
"get_schema_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_schema_response: >>> get... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param id_: Credential Definitio... | wrappers/python/indy/ledger.py | async def build_get_cred_def_request(submitter_did: Optional[str],
id_: str) -> str:
"""
Builds a GET_CRED_DEF request. Request to get a credential definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
:param submitter_did: (O... | async def build_get_cred_def_request(submitter_did: Optional[str],
id_: str) -> str:
"""
Builds a GET_CRED_DEF request. Request to get a credential definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
:param submitter_did: (O... | [
"Builds",
"a",
"GET_CRED_DEF",
"request",
".",
"Request",
"to",
"get",
"a",
"credential",
"definition",
"(",
"in",
"particular",
"public",
"key",
")",
"that",
"Issuer",
"creates",
"for",
"a",
"particular",
"Credential",
"Schema",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L576-L606 | [
"async",
"def",
"build_get_cred_def_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"id_",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_get... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | parse_get_cred_def_response | Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential Definition json.
{
id: string - identifier of credential definition
... | wrappers/python/indy/ledger.py | async def parse_get_cred_def_response(get_cred_def_response: str) -> (str, str):
"""
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential D... | async def parse_get_cred_def_response(get_cred_def_response: str) -> (str, str):
"""
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential D... | [
"Parse",
"a",
"GET_CRED_DEF",
"response",
"to",
"get",
"Credential",
"Definition",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L609-L643 | [
"async",
"def",
"parse_get_cred_def_response",
"(",
"get_cred_def_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_cred_def_response: >... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_get_validator_info_request | Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json. | wrappers/python/indy/ledger.py | async def build_get_validator_info_request(submitter_did: str) -> str:
"""
Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json.
"""
logger = logging.getLogger(__name__)
logger.debug("build_get_validator_info_req... | async def build_get_validator_info_request(submitter_did: str) -> str:
"""
Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json.
"""
logger = logging.getLogger(__name__)
logger.debug("build_get_validator_info_req... | [
"Builds",
"a",
"GET_VALIDATOR_INFO",
"request",
".",
":",
"param",
"submitter_did",
":",
"Id",
"of",
"Identity",
"stored",
"in",
"secured",
"Wallet",
".",
":",
"return",
":",
"Request",
"result",
"as",
"json",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L693-L715 | [
"async",
"def",
"build_get_validator_info_request",
"(",
"submitter_did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_get_validator_info_request: >>> submitter_did: %r\"",
"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_get_txn_request | Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param ledger_type: (Optional) type of the ledger the requested transaction belongs to:
DOMAIN - used default,... | wrappers/python/indy/ledger.py | async def build_get_txn_request(submitter_did: Optional[str],
ledger_type: Optional[str],
seq_no: int) -> str:
"""
Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request... | async def build_get_txn_request(submitter_did: Optional[str],
ledger_type: Optional[str],
seq_no: int) -> str:
"""
Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request... | [
"Builds",
"a",
"GET_TXN",
"request",
".",
"Request",
"to",
"get",
"any",
"transaction",
"by",
"its",
"seq_no",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L718-L756 | [
"async",
"def",
"build_get_txn_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"ledger_type",
":",
"Optional",
"[",
"str",
"]",
",",
"seq_no",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__n... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_pool_config_request | Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param writes: Whether any write requests can be processed by the pool
(if false, then pool goes to read-only state). True by default.
:param force: ... | wrappers/python/indy/ledger.py | async def build_pool_config_request(submitter_did: str,
writes: bool,
force: bool) -> str:
"""
Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
... | async def build_pool_config_request(submitter_did: str,
writes: bool,
force: bool) -> str:
"""
Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
... | [
"Builds",
"a",
"POOL_CONFIG",
"request",
".",
"Request",
"to",
"change",
"Pool",
"s",
"configuration",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L759-L795 | [
"async",
"def",
"build_pool_config_request",
"(",
"submitter_did",
":",
"str",
",",
"writes",
":",
"bool",
",",
"force",
":",
"bool",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_pool_restart_request | Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "start" or "cancel"
:param datetime : Time when pool must be restarted. | wrappers/python/indy/ledger.py | async def build_pool_restart_request(submitter_did: str, action: str, datetime: str) -> str:
"""
Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "star... | async def build_pool_restart_request(submitter_did: str, action: str, datetime: str) -> str:
"""
Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "star... | [
"Builds",
"a",
"POOL_RESTART",
"request"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L798-L827 | [
"async",
"def",
"build_pool_restart_request",
"(",
"submitter_did",
":",
"str",
",",
"action",
":",
"str",
",",
"datetime",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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).
:param submitter_did: DID of the submitter stored in secured Wallet.
:param name: Human-readable name for the upgrade.
:param version: The... | wrappers/python/indy/ledger.py | async def build_pool_upgrade_request(submitter_did: str,
name: str,
version: str,
action: str,
_sha256: str,
_timeout: Optional[int],
... | async def build_pool_upgrade_request(submitter_did: str,
name: str,
version: str,
action: str,
_sha256: str,
_timeout: Optional[int],
... | [
"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",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L830-L899 | [
"async",
"def",
"build_pool_upgrade_request",
"(",
"submitter_did",
":",
"str",
",",
"name",
":",
"str",
",",
"version",
":",
"str",
",",
"action",
":",
"str",
",",
"_sha256",
":",
"str",
",",
"_timeout",
":",
"Optional",
"[",
"int",
"]",
",",
"schedule"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param rev_reg_def_id: ID of Revocation R... | wrappers/python/indy/ledger.py | async def build_get_revoc_reg_def_request(submitter_did: Optional[str],
rev_reg_def_id: str) -> str:
"""
Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition,
that Issuer creates for a particular Credential Definition.
:param subm... | async def build_get_revoc_reg_def_request(submitter_did: Optional[str],
rev_reg_def_id: str) -> str:
"""
Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition,
that Issuer creates for a particular Credential Definition.
:param subm... | [
"Builds",
"a",
"GET_REVOC_REG_DEF",
"request",
".",
"Request",
"to",
"get",
"a",
"revocation",
"registry",
"definition",
"that",
"Issuer",
"creates",
"for",
"a",
"particular",
"Credential",
"Definition",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L948-L978 | [
"async",
"def",
"build_get_revoc_reg_def_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"rev_reg_def_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"("... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocation Registry Definition Id and Revocation Registry Definition json.
{
"id": string - ID... | wrappers/python/indy/ledger.py | async def parse_get_revoc_reg_def_response(get_revoc_ref_def_response: str) -> (str, str):
"""
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocat... | async def parse_get_revoc_reg_def_response(get_revoc_ref_def_response: str) -> (str, str):
"""
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocat... | [
"Parse",
"a",
"GET_REVOC_REG_DEF",
"response",
"to",
"get",
"Revocation",
"Registry",
"Definition",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L981-L1018 | [
"async",
"def",
"parse_get_revoc_reg_def_response",
"(",
"get_revoc_ref_def_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_revoc_reg_... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param submitter_did: DID of the submitter stored in se... | wrappers/python/indy/ledger.py | async def build_revoc_reg_entry_request(submitter_did: str,
revoc_reg_def_id: str,
rev_def_type: str,
value: str) -> str:
"""
Builds a REVOC_REG_ENTRY request. Request to add the RevocReg ent... | async def build_revoc_reg_entry_request(submitter_did: str,
revoc_reg_def_id: str,
rev_def_type: str,
value: str) -> str:
"""
Builds a REVOC_REG_ENTRY request. Request to add the RevocReg ent... | [
"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",
"n... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1021-L1069 | [
"async",
"def",
"build_revoc_reg_entry_request",
"(",
"submitter_did",
":",
"str",
",",
"revoc_reg_def_id",
":",
"str",
",",
"rev_def_type",
":",
"str",
",",
"value",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param revoc_reg_def_id: ID of the co... | wrappers/python/indy/ledger.py | async def build_get_revoc_reg_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
timestamp: int) -> str:
"""
Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry
by ID. The state ... | async def build_get_revoc_reg_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
timestamp: int) -> str:
"""
Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry
by ID. The state ... | [
"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",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1072-L1105 | [
"async",
"def",
"build_get_revoc_reg_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"revoc_reg_def_id",
":",
"str",
",",
"timestamp",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | parse_get_revoc_reg_response | Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id, Revocation Registry json and Timestamp.
{
"value": Registry-specific data {
... | wrappers/python/indy/ledger.py | async def parse_get_revoc_reg_response(get_revoc_reg_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id... | async def parse_get_revoc_reg_response(get_revoc_reg_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id... | [
"Parse",
"a",
"GET_REVOC_REG",
"response",
"to",
"get",
"Revocation",
"Registry",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1108-L1137 | [
"async",
"def",
"parse_get_revoc_reg_response",
"(",
"get_revoc_reg_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
",",
"int",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_re... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param submitter_did: (Optional) DID of the read request sender ... | wrappers/python/indy/ledger.py | async def build_get_revoc_reg_delta_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
from_: Optional[int],
to: int) -> str:
"""
Builds a GET_REVOC_REG_DELTA request. Re... | async def build_get_revoc_reg_delta_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
from_: Optional[int],
to: int) -> str:
"""
Builds a GET_REVOC_REG_DELTA request. Re... | [
"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",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1140-L1178 | [
"async",
"def",
"build_get_revoc_reg_delta_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"revoc_reg_def_id",
":",
"str",
",",
"from_",
":",
"Optional",
"[",
"int",
"]",
",",
"to",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | 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.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:return: Revocation Registry Definition Id, Revocation Registry Delta json and Timestamp.
{
"value": R... | wrappers/python/indy/ledger.py | async def parse_get_revoc_reg_delta_response(get_revoc_reg_delta_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:retur... | async def parse_get_revoc_reg_delta_response(get_revoc_reg_delta_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:retur... | [
"Parse",
"a",
"GET_REVOC_REG_DELTA",
"response",
"to",
"get",
"Revocation",
"Registry",
"Delta",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1181-L1215 | [
"async",
"def",
"parse_get_revoc_reg_delta_response",
"(",
"get_revoc_reg_delta_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
",",
"int",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | get_response_metadata | Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce pool load libindy sends read requests to one random node in the pool... | wrappers/python/indy/ledger.py | async def get_response_metadata(response: str) -> str:
"""
Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce ... | async def get_response_metadata(response: str) -> str:
"""
Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce ... | [
"Parse",
"transaction",
"response",
"to",
"fetch",
"metadata",
".",
"The",
"important",
"use",
"case",
"for",
"this",
"method",
"is",
"validation",
"of",
"Node",
"s",
"response",
"freshens",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1218-L1263 | [
"async",
"def",
"get_response_metadata",
"(",
"response",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_response_metadata: >>> response: %r\"",
",",
"response",
")",
"if",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_auth_rule_request | Builds a AUTH_RULE request. Request to change authentication rules for a ledger transaction.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param txn_type: ledger transaction alias or associated value.
:param action: type of an action.
Can be either "ADD" (to add a new rule) o... | wrappers/python/indy/ledger.py | async def build_auth_rule_request(submitter_did: str,
txn_type: str,
action: str,
field: str,
old_value: Optional[str],
new_value: Optional[str],
... | async def build_auth_rule_request(submitter_did: str,
txn_type: str,
action: str,
field: str,
old_value: Optional[str],
new_value: Optional[str],
... | [
"Builds",
"a",
"AUTH_RULE",
"request",
".",
"Request",
"to",
"change",
"authentication",
"rules",
"for",
"a",
"ledger",
"transaction",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1266-L1340 | [
"async",
"def",
"build_auth_rule_request",
"(",
"submitter_did",
":",
"str",
",",
"txn_type",
":",
"str",
",",
"action",
":",
"str",
",",
"field",
":",
"str",
",",
"old_value",
":",
"Optional",
"[",
"str",
"]",
",",
"new_value",
":",
"Optional",
"[",
"st... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | create_and_store_my_did | Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verkey.
Saves the Identity DID with keys in a secured Wallet, so that it can be used to sign
and encrypt transactions.
:p... | wrappers/python/indy/did.py | async def create_and_store_my_did(wallet_handle: int,
did_json: str) -> (str, str):
"""
Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verk... | async def create_and_store_my_did(wallet_handle: int,
did_json: str) -> (str, str):
"""
Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verk... | [
"Creates",
"keys",
"(",
"signing",
"and",
"encryption",
"keys",
")",
"for",
"a",
"new",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
".",
"Identity",
"s",
"DID",
"must",
"be",
"either",
"explicitly",
"provided",
"or",
"taken",... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L10-L56 | [
"async",
"def",
"create_and_store_my_did",
"(",
"wallet_handle",
":",
"int",
",",
"did_json",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"creat... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | replace_keys_start | Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: signing DID
:param identity_json: Identity information as json. Example:
{
"seed": string, (optional) Se... | wrappers/python/indy/did.py | async def replace_keys_start(wallet_handle: int,
did: str,
identity_json: str) -> str:
"""
Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created b... | async def replace_keys_start(wallet_handle: int,
did: str,
identity_json: str) -> str:
"""
Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created b... | [
"Generated",
"new",
"keys",
"(",
"signing",
"and",
"encryption",
"keys",
")",
"for",
"an",
"existing",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L59-L101 | [
"async",
"def",
"replace_keys_start",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"identity_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"rep... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | replace_keys_apply | Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Error code | wrappers/python/indy/did.py | async def replace_keys_apply(wallet_handle: int,
did: str) -> None:
"""
Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Err... | async def replace_keys_apply(wallet_handle: int,
did: str) -> None:
"""
Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Err... | [
"Apply",
"temporary",
"keys",
"as",
"main",
"for",
"an",
"existing",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L104-L131 | [
"async",
"def",
"replace_keys_apply",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"replace_keys_apply: >>> wallet_handle: %r, d... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | store_their_did | Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: Identity information as json. Example:
{
"did": string, (required)
"verkey": string... | wrappers/python/indy/did.py | async def store_their_did(wallet_handle: int,
identity_json: str) -> None:
"""
Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: ... | async def store_their_did(wallet_handle: int,
identity_json: str) -> None:
"""
Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: ... | [
"Saves",
"their",
"DID",
"for",
"a",
"pairwise",
"connection",
"in",
"a",
"secured",
"Wallet",
"so",
"that",
"it",
"can",
"be",
"used",
"to",
"verify",
"transaction",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L134-L169 | [
"async",
"def",
"store_their_did",
"(",
"wallet_handle",
":",
"int",
",",
"identity_json",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"store_their_did: >>> wallet_handle: %... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | create_key | Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that allows deterministic key creation (if not set random one will be created).
... | wrappers/python/indy/did.py | async def create_key(wallet_handle: int,
key_json: str) -> str:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that a... | async def create_key(wallet_handle: int,
key_json: str) -> str:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that a... | [
"Creates",
"keys",
"pair",
"and",
"stores",
"in",
"the",
"wallet",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L171-L207 | [
"async",
"def",
"create_key",
"(",
"wallet_handle",
":",
"int",
",",
"key_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"create_key: >>> wallet_handle: %r, key_json: %r\... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | set_key_metadata | Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metadata.
:param metadata: the meta information that will be store with the key.
:return: Error code | wrappers/python/indy/did.py | async def set_key_metadata(wallet_handle: int,
verkey: str,
metadata: str) -> None:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metada... | async def set_key_metadata(wallet_handle: int,
verkey: str,
metadata: str) -> None:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metada... | [
"Creates",
"keys",
"pair",
"and",
"stores",
"in",
"the",
"wallet",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L210-L242 | [
"async",
"def",
"set_key_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"verkey",
":",
"str",
",",
"metadata",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"set_ke... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | get_key_metadata | Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: metadata: The meta information stored with the key; Can be null if no metadata was saved for this key. | wrappers/python/indy/did.py | async def get_key_metadata(wallet_handle: int,
verkey: str) -> str:
"""
Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: me... | async def get_key_metadata(wallet_handle: int,
verkey: str) -> str:
"""
Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: me... | [
"Retrieves",
"the",
"meta",
"information",
"for",
"the",
"giving",
"key",
"in",
"the",
"wallet",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L245-L275 | [
"async",
"def",
"get_key_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"verkey",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_key_metadata: >>> wallet_handle: %r, ver... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | set_endpoint_for_did | Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: The DID to resolve endpoint.
:param address: The DIDs endpoint address.
:param transport_key: The DIDs transport key (ver key, key id).
:return: Error code | wrappers/python/indy/did.py | async def set_endpoint_for_did(wallet_handle: int,
did: str,
address: str,
transport_key: str) -> None:
"""
Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_... | async def set_endpoint_for_did(wallet_handle: int,
did: str,
address: str,
transport_key: str) -> None:
"""
Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_... | [
"Set",
"/",
"replaces",
"endpoint",
"information",
"for",
"the",
"given",
"DID",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L368-L405 | [
"async",
"def",
"set_endpoint_for_did",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"address",
":",
"str",
",",
"transport_key",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"log... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | get_endpoint_for_did | Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Pool handle (created by open_pool).
:param did: The DID to resolve endpoint.
:return: (endpoint, transport_vk) | wrappers/python/indy/did.py | async def get_endpoint_for_did(wallet_handle: int,
pool_handle: int,
did: str) -> (str, Optional[str]):
"""
Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Poo... | async def get_endpoint_for_did(wallet_handle: int,
pool_handle: int,
did: str) -> (str, Optional[str]):
"""
Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Poo... | [
"Returns",
"endpoint",
"information",
"for",
"the",
"given",
"DID",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L408-L445 | [
"async",
"def",
"get_endpoint_for_did",
"(",
"wallet_handle",
":",
"int",
",",
"pool_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"(",
"str",
",",
"Optional",
"[",
"str",
"]",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__nam... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | set_did_metadata | Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store metadata.
:param metadata: the meta information that will be store with the DID.
:return: Error code | wrappers/python/indy/did.py | async def set_did_metadata(wallet_handle: int,
did: str,
metadata: str) -> None:
"""
Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store met... | async def set_did_metadata(wallet_handle: int,
did: str,
metadata: str) -> None:
"""
Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store met... | [
"Saves",
"/",
"replaces",
"the",
"meta",
"information",
"for",
"the",
"giving",
"DID",
"in",
"the",
"wallet",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L448-L480 | [
"async",
"def",
"set_did_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"metadata",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"set_did_m... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | get_my_did_with_meta | Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata. | wrappers/python/indy/did.py | async def get_my_did_with_meta(wallet_handle: int, did: str) -> str:
"""
Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata.
"""
logger = logging.ge... | async def get_my_did_with_meta(wallet_handle: int, did: str) -> str:
"""
Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata.
"""
logger = logging.ge... | [
"Get",
"DID",
"metadata",
"and",
"verkey",
"stored",
"in",
"the",
"wallet",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L516-L545 | [
"async",
"def",
"get_my_did_with_meta",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_my_did_with_meta: >>> wallet_handle: %r... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | abbreviate_verkey | Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey. | wrappers/python/indy/did.py | async def abbreviate_verkey(did: str,
full_verkey: str) -> str:
"""
Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey.
""... | async def abbreviate_verkey(did: str,
full_verkey: str) -> str:
"""
Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey.
""... | [
"Retrieves",
"abbreviated",
"verkey",
"if",
"it",
"is",
"possible",
"otherwise",
"return",
"full",
"verkey",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L576-L605 | [
"async",
"def",
"abbreviate_verkey",
"(",
"did",
":",
"str",
",",
"full_verkey",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"abbreviate_verkey: >>> did: %r, full_verkey: %r\... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.create | Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
offer = [{
"msg_type": "CLAIM_OFFER",
"version"... | vcx/wrappers/python3/vcx/api/credential.py | async def create(source_id: str, credential_offer: str):
"""
Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
... | async def create(source_id: str, credential_offer: str):
"""
Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
... | [
"Creates",
"a",
"credential",
"with",
"an",
"offer",
".",
":",
"param",
"source_id",
":",
"user",
"defined",
"id",
"of",
"object",
".",
":",
"param",
"credential_offer",
":",
"JSON",
"string",
"representing",
"the",
"offer",
"used",
"as",
"the",
"basis",
"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L31-L77 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"credential_offer",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
"encode",
"(",
"'utf-8'",
")",
")",
"c_offe... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.create_with_msgid | Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
:param msg_id: message id
:return: A created credential
Example:
credential = ... | vcx/wrappers/python3/vcx/api/credential.py | async def create_with_msgid(source_id: str, connection: Connection, msg_id: str):
"""
Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
... | async def create_with_msgid(source_id: str, connection: Connection, msg_id: str):
"""
Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
... | [
"Create",
"a",
"credential",
"based",
"off",
"of",
"a",
"known",
"message",
"id",
"for",
"a",
"given",
"connection",
".",
":",
"param",
"source_id",
":",
"user",
"defined",
"id",
"of",
"object",
".",
":",
"param",
"connection",
":",
"connection",
"handle",... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L80-L108 | [
"async",
"def",
"create_with_msgid",
"(",
"source_id",
":",
"str",
",",
"connection",
":",
"Connection",
",",
"msg_id",
":",
"str",
")",
":",
"credential",
"=",
"Credential",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.deserialize | Create a credential object from a previously serialized credential object
:param data: JSON data from a serialized object.
:return: A created credential
Example:
credential = await Credential.create(source_id, offer)
data = await credential.serialize()
credential2 = await... | vcx/wrappers/python3/vcx/api/credential.py | async def deserialize(data: dict):
"""
Create a credential object from a previously serialized credential object
:param data: JSON data from a serialized object.
:return: A created credential
Example:
credential = await Credential.create(source_id, offer)
data = a... | async def deserialize(data: dict):
"""
Create a credential object from a previously serialized credential object
:param data: JSON data from a serialized object.
:return: A created credential
Example:
credential = await Credential.create(source_id, offer)
data = a... | [
"Create",
"a",
"credential",
"object",
"from",
"a",
"previously",
"serialized",
"credential",
"object",
":",
"param",
"data",
":",
"JSON",
"data",
"from",
"a",
"serialized",
"object",
".",
":",
"return",
":",
"A",
"created",
"credential",
"Example",
":",
"cr... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L111-L125 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"credential",
"=",
"await",
"Credential",
".",
"_deserialize",
"(",
"\"vcx_credential_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
".",
"get",
"(",
"'data'",
")... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.get_offers | Retrieves all pending credential offers for a given connection.
:param connection: A connection handle
:return: A list of dictionary objects representing offers from a given connection.
Example:
credential = await Credential.create_with_msgid(source_id, connection, msg_id)
offers... | vcx/wrappers/python3/vcx/api/credential.py | async def get_offers(connection: Connection) -> dict:
"""
Retrieves all pending credential offers for a given connection.
:param connection: A connection handle
:return: A list of dictionary objects representing offers from a given connection.
Example:
credential = await ... | async def get_offers(connection: Connection) -> dict:
"""
Retrieves all pending credential offers for a given connection.
:param connection: A connection handle
:return: A list of dictionary objects representing offers from a given connection.
Example:
credential = await ... | [
"Retrieves",
"all",
"pending",
"credential",
"offers",
"for",
"a",
"given",
"connection",
".",
":",
"param",
"connection",
":",
"A",
"connection",
"handle",
":",
"return",
":",
"A",
"list",
"of",
"dictionary",
"objects",
"representing",
"offers",
"from",
"a",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L128-L146 | [
"async",
"def",
"get_offers",
"(",
"connection",
":",
"Connection",
")",
"->",
"dict",
":",
"if",
"not",
"hasattr",
"(",
"Credential",
".",
"get_offers",
",",
"\"cb\"",
")",
":",
"Credential",
".",
"get_offers",
".",
"cb",
"=",
"create_cb",
"(",
"CFUNCTYPE... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.send_request | Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet.
:param connection: connection to submit request from
:param payment_handle: currently unused
:return:
Example:
connection = await Connection.create(sourc... | vcx/wrappers/python3/vcx/api/credential.py | async def send_request(self, connection: Connection, payment_handle: int):
"""
Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet.
:param connection: connection to submit request from
:param payment_handle: curren... | async def send_request(self, connection: Connection, payment_handle: int):
"""
Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet.
:param connection: connection to submit request from
:param payment_handle: curren... | [
"Approves",
"the",
"credential",
"offer",
"and",
"submits",
"a",
"credential",
"request",
".",
"The",
"result",
"will",
"be",
"a",
"credential",
"stored",
"in",
"the",
"prover",
"s",
"wallet",
".",
":",
"param",
"connection",
":",
"connection",
"to",
"submit... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L186-L210 | [
"async",
"def",
"send_request",
"(",
"self",
",",
"connection",
":",
"Connection",
",",
"payment_handle",
":",
"int",
")",
":",
"if",
"not",
"hasattr",
"(",
"Credential",
".",
"send_request",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.get_payment_info | Retrieve Payment Transaction Information for this Credential. Typically this will include
how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will
issue the credential to the prover. Ideally a prover would want to know how much payment is being asked b... | vcx/wrappers/python3/vcx/api/credential.py | async def get_payment_info(self):
"""
Retrieve Payment Transaction Information for this Credential. Typically this will include
how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will
issue the credential to the prover. Ideally a prove... | async def get_payment_info(self):
"""
Retrieve Payment Transaction Information for this Credential. Typically this will include
how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will
issue the credential to the prover. Ideally a prove... | [
"Retrieve",
"Payment",
"Transaction",
"Information",
"for",
"this",
"Credential",
".",
"Typically",
"this",
"will",
"include",
"how",
"much",
"payment",
"is",
"requried",
"by",
"the",
"issuer",
"which",
"needs",
"to",
"be",
"provided",
"by",
"the",
"prover",
"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L212-L230 | [
"async",
"def",
"get_payment_info",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"Credential",
".",
"get_payment_info",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_credential_get_payment_info: Creating callback\"",
")",
"Creden... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Credential.get_payment_txn | Retirieve the payment transaction associated with this credential. This can be used to get the txn that
was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to
the issuer.
:return:
Example:
txn = credential.get_payment_txn() | vcx/wrappers/python3/vcx/api/credential.py | async def get_payment_txn(self):
"""
Retirieve the payment transaction associated with this credential. This can be used to get the txn that
was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to
the issuer.
:return:
E... | async def get_payment_txn(self):
"""
Retirieve the payment transaction associated with this credential. This can be used to get the txn that
was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to
the issuer.
:return:
E... | [
"Retirieve",
"the",
"payment",
"transaction",
"associated",
"with",
"this",
"credential",
".",
"This",
"can",
"be",
"used",
"to",
"get",
"the",
"txn",
"that",
"was",
"used",
"to",
"pay",
"the",
"issuer",
"from",
"the",
"prover",
".",
"This",
"could",
"be",... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L232-L251 | [
"async",
"def",
"get_payment_txn",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"Credential",
".",
"get_payment_txn",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_credential_get_payment_txn: Creating callback\"",
")",
"Credentia... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.create | Create a connection object, represents a single endpoint and can be used for sending and receiving
credentials and proofs
:param source_id: Institution's unique ID for the connection
:return: connection object
Example:
connection = await Connection.create(source_id) | vcx/wrappers/python3/vcx/api/connection.py | async def create(source_id: str):
"""
Create a connection object, represents a single endpoint and can be used for sending and receiving
credentials and proofs
:param source_id: Institution's unique ID for the connection
:return: connection object
Example:
connec... | async def create(source_id: str):
"""
Create a connection object, represents a single endpoint and can be used for sending and receiving
credentials and proofs
:param source_id: Institution's unique ID for the connection
:return: connection object
Example:
connec... | [
"Create",
"a",
"connection",
"object",
"represents",
"a",
"single",
"endpoint",
"and",
"can",
"be",
"used",
"for",
"sending",
"and",
"receiving",
"credentials",
"and",
"proofs"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L33-L50 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
"encode",
"(",
"'utf-8'",
")",
")",
"c_params",
"=",
"(",
"c_source_id",
",",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.create_with_details | Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving
credentials and proofs
Invite details are provided by the entity offering a connection and generally pulled from a provided QRCode.
:param source_id: Institution's unique ID... | vcx/wrappers/python3/vcx/api/connection.py | async def create_with_details(source_id: str, invite_details: str):
"""
Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving
credentials and proofs
Invite details are provided by the entity offering a connection and ge... | async def create_with_details(source_id: str, invite_details: str):
"""
Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving
credentials and proofs
Invite details are provided by the entity offering a connection and ge... | [
"Create",
"a",
"connection",
"object",
"with",
"a",
"provided",
"invite",
"represents",
"a",
"single",
"endpoint",
"and",
"can",
"be",
"used",
"for",
"sending",
"and",
"receiving",
"credentials",
"and",
"proofs"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L53-L74 | [
"async",
"def",
"create_with_details",
"(",
"source_id",
":",
"str",
",",
"invite_details",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
"encode",
"(",
"'utf-8'",
")",
")"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.deserialize | Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
data = await connection1.serialize()
connection2 = await Connection.deserialize(data)
:return: A re-instantiated object | vcx/wrappers/python3/vcx/api/connection.py | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
data = await connection1.serialize()
connection2 = await Connection.deserialize(data)
:return: A re-instantiated... | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
data = await connection1.serialize()
connection2 = await Connection.deserialize(data)
:return: A re-instantiated... | [
"Create",
"the",
"object",
"from",
"a",
"previously",
"serialized",
"object",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L77-L89 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"return",
"await",
"Connection",
".",
"_deserialize",
"(",
"\"vcx_connection_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
".",
"get",
"(",
"'source_id'",
")",
"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.connect | Connect securely and privately to the endpoint represented by the object.
:param options: detailed connection options
Example options:
{"connection_type":"SMS","phone":"5555555555","use_public_did":true}
or:
{"connection_type":"QR"}
Example code:
connection = awa... | vcx/wrappers/python3/vcx/api/connection.py | async def connect(self, options: str) -> str:
"""
Connect securely and privately to the endpoint represented by the object.
:param options: detailed connection options
Example options:
{"connection_type":"SMS","phone":"5555555555","use_public_did":true}
or:
{"con... | async def connect(self, options: str) -> str:
"""
Connect securely and privately to the endpoint represented by the object.
:param options: detailed connection options
Example options:
{"connection_type":"SMS","phone":"5555555555","use_public_did":true}
or:
{"con... | [
"Connect",
"securely",
"and",
"privately",
"to",
"the",
"endpoint",
"represented",
"by",
"the",
"object",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L91-L115 | [
"async",
"def",
"connect",
"(",
"self",
",",
"options",
":",
"str",
")",
"->",
"str",
":",
"if",
"not",
"hasattr",
"(",
"Connection",
".",
"connect",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_connection_connect: Creating cal... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.send_message | Send a generic message to the connection
:param msg:
:param msg_type:
:param msg_title:
:return: | vcx/wrappers/python3/vcx/api/connection.py | async def send_message(self, msg: str, msg_type: str, msg_title: str) -> str:
"""
Send a generic message to the connection
:param msg:
:param msg_type:
:param msg_title:
:return:
"""
if not hasattr(Connection.send_message, "cb"):
... | async def send_message(self, msg: str, msg_type: str, msg_title: str) -> str:
"""
Send a generic message to the connection
:param msg:
:param msg_type:
:param msg_title:
:return:
"""
if not hasattr(Connection.send_message, "cb"):
... | [
"Send",
"a",
"generic",
"message",
"to",
"the",
"connection",
":",
"param",
"msg",
":",
":",
"param",
"msg_type",
":",
":",
"param",
"msg_title",
":",
":",
"return",
":"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L117-L142 | [
"async",
"def",
"send_message",
"(",
"self",
",",
"msg",
":",
"str",
",",
"msg_type",
":",
"str",
",",
"msg_title",
":",
"str",
")",
"->",
"str",
":",
"if",
"not",
"hasattr",
"(",
"Connection",
".",
"send_message",
",",
"\"cb\"",
")",
":",
"self",
".... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.sign_data | Sign data using connection's pairwise key
:param msg:
:return: signature | vcx/wrappers/python3/vcx/api/connection.py | async def sign_data(self, msg: bytes) -> bytes:
"""
Sign data using connection's pairwise key
:param msg:
:return: signature
"""
def transform_cb(arr_ptr: POINTER(c_uint8), arr_len: c_uint32):
return bytes(arr_ptr[:arr_len]),
if not hasattr(Connectio... | async def sign_data(self, msg: bytes) -> bytes:
"""
Sign data using connection's pairwise key
:param msg:
:return: signature
"""
def transform_cb(arr_ptr: POINTER(c_uint8), arr_len: c_uint32):
return bytes(arr_ptr[:arr_len]),
if not hasattr(Connectio... | [
"Sign",
"data",
"using",
"connection",
"s",
"pairwise",
"key",
":",
"param",
"msg",
":",
":",
"return",
":",
"signature"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L144-L168 | [
"async",
"def",
"sign_data",
"(",
"self",
",",
"msg",
":",
"bytes",
")",
"->",
"bytes",
":",
"def",
"transform_cb",
"(",
"arr_ptr",
":",
"POINTER",
"(",
"c_uint8",
")",
",",
"arr_len",
":",
"c_uint32",
")",
":",
"return",
"bytes",
"(",
"arr_ptr",
"[",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.verify_signature | Verification the signature of a msg
:param msg:
:param signature:
:return: bool | vcx/wrappers/python3/vcx/api/connection.py | async def verify_signature(self, msg: bytes, signature: bytes) -> bool:
"""
Verification the signature of a msg
:param msg:
:param signature:
:return: bool
"""
if not hasattr(Connection.verify_signature, "cb"):
self.logger.debug("vcx_connection_verify_... | async def verify_signature(self, msg: bytes, signature: bytes) -> bool:
"""
Verification the signature of a msg
:param msg:
:param signature:
:return: bool
"""
if not hasattr(Connection.verify_signature, "cb"):
self.logger.debug("vcx_connection_verify_... | [
"Verification",
"the",
"signature",
"of",
"a",
"msg",
":",
"param",
"msg",
":",
":",
"param",
"signature",
":",
":",
"return",
":",
"bool"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L170-L194 | [
"async",
"def",
"verify_signature",
"(",
"self",
",",
"msg",
":",
"bytes",
",",
"signature",
":",
"bytes",
")",
"->",
"bool",
":",
"if",
"not",
"hasattr",
"(",
"Connection",
".",
"verify_signature",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Connection.invite_details | Get the invite details that were sent or can be sent to the endpoint.
:param abbreviated: abbreviate invite details or not
Example:
phone_number = '8019119191'
connection = await Connection.create('foobar123')
invite_details = await connection.connect(phone_number)
inivt... | vcx/wrappers/python3/vcx/api/connection.py | async def invite_details(self, abbreviated: bool) -> dict:
"""
Get the invite details that were sent or can be sent to the endpoint.
:param abbreviated: abbreviate invite details or not
Example:
phone_number = '8019119191'
connection = await Connection.create('foobar123'... | async def invite_details(self, abbreviated: bool) -> dict:
"""
Get the invite details that were sent or can be sent to the endpoint.
:param abbreviated: abbreviate invite details or not
Example:
phone_number = '8019119191'
connection = await Connection.create('foobar123'... | [
"Get",
"the",
"invite",
"details",
"that",
"were",
"sent",
"or",
"can",
"be",
"sent",
"to",
"the",
"endpoint",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L254-L278 | [
"async",
"def",
"invite_details",
"(",
"self",
",",
"abbreviated",
":",
"bool",
")",
"->",
"dict",
":",
"if",
"not",
"hasattr",
"(",
"Connection",
".",
"invite_details",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_connection_i... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.create | Create a proof for fulfilling a corresponding proof request
:param source_id: Tag associated by user of sdk
:param proof_request: Proof Request data sent by requestor.
Example:
source_id = 'sourceId'
request = {
"@topic": {
"mid": 9,
"tid": 1
... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def create(source_id: str, proof_request: str):
"""
Create a proof for fulfilling a corresponding proof request
:param source_id: Tag associated by user of sdk
:param proof_request: Proof Request data sent by requestor.
Example:
source_id = 'sourceId'
reques... | async def create(source_id: str, proof_request: str):
"""
Create a proof for fulfilling a corresponding proof request
:param source_id: Tag associated by user of sdk
:param proof_request: Proof Request data sent by requestor.
Example:
source_id = 'sourceId'
reques... | [
"Create",
"a",
"proof",
"for",
"fulfilling",
"a",
"corresponding",
"proof",
"request",
":",
"param",
"source_id",
":",
"Tag",
"associated",
"by",
"user",
"of",
"sdk",
":",
"param",
"proof_request",
":",
"Proof",
"Request",
"data",
"sent",
"by",
"requestor",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L30-L76 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"proof_request",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
"encode",
"(",
"'utf-8'",
")",
")",
"c_proof_r... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.deserialize | :param data: Data provided by the serialize method
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def deserialize(data: dict):
"""
:param data: Data provided by the serialize method
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await Discl... | async def deserialize(data: dict):
"""
:param data: Data provided by the serialize method
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await Discl... | [
":",
"param",
"data",
":",
"Data",
"provided",
"by",
"the",
"serialize",
"method",
"Example",
":",
"msg_id",
"=",
"1",
"phone_number",
"=",
"8019119191",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L113-L129 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"disclosed_proof",
"=",
"await",
"DisclosedProof",
".",
"_deserialize",
"(",
"\"vcx_disclosed_proof_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
".",
"get",
"(",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.get_requests | Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id)
requests = await DisclosedProof.get_requests(co... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def get_requests(connection: Connection) -> dict:
"""
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id,... | async def get_requests(connection: Connection) -> dict:
"""
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id,... | [
"Example",
":",
"msg_id",
"=",
"1",
"phone_number",
"=",
"8019119191",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
"phone_number",
")",
"disclosed_proof",
"=",
"await",
"DisclosedPro... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L132-L153 | [
"async",
"def",
"get_requests",
"(",
"connection",
":",
"Connection",
")",
"->",
"dict",
":",
"if",
"not",
"hasattr",
"(",
"DisclosedProof",
".",
"get_requests",
",",
"\"cb\"",
")",
":",
"DisclosedProof",
".",
"get_requests",
".",
"cb",
"=",
"create_cb",
"("... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.get_creds | Gets the credentials from a disclosed proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id)
... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def get_creds(self) -> dict:
"""
Gets the credentials from a disclosed proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedPro... | async def get_creds(self) -> dict:
"""
Gets the credentials from a disclosed proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedPro... | [
"Gets",
"the",
"credentials",
"from",
"a",
"disclosed",
"proof",
"Example",
":",
"msg_id",
"=",
"1",
"phone_number",
"=",
"8019119191",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L204-L225 | [
"async",
"def",
"get_creds",
"(",
"self",
")",
"->",
"dict",
":",
"if",
"not",
"hasattr",
"(",
"DisclosedProof",
".",
"get_creds",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_disclosed_proof_retrieve_credentials: Creating callback\"",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.send_proof | Sends the proof to the Connection
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id)
await... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def send_proof(self, connection: Connection):
"""
Sends the proof to the Connection
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await Discl... | async def send_proof(self, connection: Connection):
"""
Sends the proof to the Connection
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await Discl... | [
"Sends",
"the",
"proof",
"to",
"the",
"Connection",
"Example",
":",
"msg_id",
"=",
"1",
"phone_number",
"=",
"8019119191",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
"phone_number... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L227-L250 | [
"async",
"def",
"send_proof",
"(",
"self",
",",
"connection",
":",
"Connection",
")",
":",
"if",
"not",
"hasattr",
"(",
"DisclosedProof",
".",
"send_proof",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_disclosed_proof_send_proof: C... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | DisclosedProof.generate_proof | Generates the proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id)
await disclosed_pro... | vcx/wrappers/python3/vcx/api/disclosed_proof.py | async def generate_proof(self, selected_creds: dict, self_attested_attrs: dict):
"""
Generates the proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proo... | async def generate_proof(self, selected_creds: dict, self_attested_attrs: dict):
"""
Generates the proof
Example:
msg_id = '1'
phone_number = '8019119191'
connection = await Connection.create(source_id)
await connection.connect(phone_number)
disclosed_proo... | [
"Generates",
"the",
"proof",
"Example",
":",
"msg_id",
"=",
"1",
"phone_number",
"=",
"8019119191",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
"phone_number",
")",
"disclosed_proof"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L253-L279 | [
"async",
"def",
"generate_proof",
"(",
"self",
",",
"selected_creds",
":",
"dict",
",",
"self_attested_attrs",
":",
"dict",
")",
":",
"if",
"not",
"hasattr",
"(",
"DisclosedProof",
".",
"generate_proof",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | create_payment_address | Create the payment address for specified payment method
This method generates private part of payment address
and stores it in a secure place. Ideally it should be
secret in libindy wallet (see crypto module).
Note that payment method should be able to resolve this
secret by fully resolvable... | wrappers/python/indy/payment.py | async def create_payment_address(wallet_handle: int,
payment_method: str,
config: str) -> str:
"""
Create the payment address for specified payment method
This method generates private part of payment address
and stores it in a secur... | async def create_payment_address(wallet_handle: int,
payment_method: str,
config: str) -> str:
"""
Create the payment address for specified payment method
This method generates private part of payment address
and stores it in a secur... | [
"Create",
"the",
"payment",
"address",
"for",
"specified",
"payment",
"method"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L9-L54 | [
"async",
"def",
"create_payment_address",
"(",
"wallet_handle",
":",
"int",
",",
"payment_method",
":",
"str",
",",
"config",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_get_payment_sources_request | Builds Indy request for getting sources list for payment address
according to this payment method.
:param wallet_handle: wallet handle (created by open_wallet).
:param submitter_did : (Option) DID of request sender
:param payment_address: target payment address
:return: get_sources_txn_json: Indy r... | wrappers/python/indy/payment.py | async def build_get_payment_sources_request(wallet_handle: int,
submitter_did: str,
payment_address: str) -> (str, str):
"""
Builds Indy request for getting sources list for payment address
according to this payment meth... | async def build_get_payment_sources_request(wallet_handle: int,
submitter_did: str,
payment_address: str) -> (str, str):
"""
Builds Indy request for getting sources list for payment address
according to this payment meth... | [
"Builds",
"Indy",
"request",
"for",
"getting",
"sources",
"list",
"for",
"payment",
"address",
"according",
"to",
"this",
"payment",
"method",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L196-L232 | [
"async",
"def",
"build_get_payment_sources_request",
"(",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"payment_address",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_payment_req | Builds Indy request for doing payment
according to this payment method.
This method consumes set of inputs and outputs.
Format of inputs is specific for payment method. Usually it should reference payment transaction
with at least one output that corresponds to payment address that user owns.
... | wrappers/python/indy/payment.py | async def build_payment_req(wallet_handle: int,
submitter_did: str,
inputs_json: str,
outputs_json: str,
extra: Optional[str]) -> (str, str):
"""
Builds Indy request for doing payment
according to... | async def build_payment_req(wallet_handle: int,
submitter_did: str,
inputs_json: str,
outputs_json: str,
extra: Optional[str]) -> (str, str):
"""
Builds Indy request for doing payment
according to... | [
"Builds",
"Indy",
"request",
"for",
"doing",
"payment",
"according",
"to",
"this",
"payment",
"method",
".",
"This",
"method",
"consumes",
"set",
"of",
"inputs",
"and",
"outputs",
".",
"Format",
"of",
"inputs",
"is",
"specific",
"for",
"payment",
"method",
"... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L274-L333 | [
"async",
"def",
"build_payment_req",
"(",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"inputs_json",
":",
"str",
",",
"outputs_json",
":",
"str",
",",
"extra",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"(",
"str",
",",
"str",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_set_txn_fees_req | Builds Indy request for setting fees for transactions in the ledger
:param wallet_handle: wallet handle (created by open_wallet).
:param submitter_did : (Option) DID of request sender
:param payment_method: Payment method to use (for example, 'sov').
:param fees_json: {
txnType1: amount1,
... | wrappers/python/indy/payment.py | async def build_set_txn_fees_req(wallet_handle: int,
submitter_did: str,
payment_method: str,
fees_json: str) -> str:
"""
Builds Indy request for setting fees for transactions in the ledger
:param wallet_hand... | async def build_set_txn_fees_req(wallet_handle: int,
submitter_did: str,
payment_method: str,
fees_json: str) -> str:
"""
Builds Indy request for setting fees for transactions in the ledger
:param wallet_hand... | [
"Builds",
"Indy",
"request",
"for",
"setting",
"fees",
"for",
"transactions",
"in",
"the",
"ledger"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L425-L469 | [
"async",
"def",
"build_set_txn_fees_req",
"(",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"payment_method",
":",
"str",
",",
"fees_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_get_txn_fees_req | Builds Indy request for getting fees for transactions in the ledger
:param wallet_handle: wallet handle (created by open_wallet).
:param submitter_did : (Option) DID of request sender
:param payment_method: Payment method to use (for example, 'sov').
:return: set_txn_fees_json: Indy request for setting... | wrappers/python/indy/payment.py | async def build_get_txn_fees_req(wallet_handle: int,
submitter_did: str,
payment_method: str) -> str:
"""
Builds Indy request for getting fees for transactions in the ledger
:param wallet_handle: wallet handle (created by open_wallet).
:... | async def build_get_txn_fees_req(wallet_handle: int,
submitter_did: str,
payment_method: str) -> str:
"""
Builds Indy request for getting fees for transactions in the ledger
:param wallet_handle: wallet handle (created by open_wallet).
:... | [
"Builds",
"Indy",
"request",
"for",
"getting",
"fees",
"for",
"transactions",
"in",
"the",
"ledger"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L472-L506 | [
"async",
"def",
"build_get_txn_fees_req",
"(",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"payment_method",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | parse_get_txn_fees_response | Parses response for Indy request for getting fees
:param payment_method: Payment method to use (for example, 'sov').
:param resp_json: response for Indy request for getting fees
:return: fees_json: {
txnType1: amount1,
txnType2: amount2,
.................
txnTypeN: amountN,
... | wrappers/python/indy/payment.py | async def parse_get_txn_fees_response(payment_method: str,
resp_json: str) -> str:
"""
Parses response for Indy request for getting fees
:param payment_method: Payment method to use (for example, 'sov').
:param resp_json: response for Indy request for getting fees
... | async def parse_get_txn_fees_response(payment_method: str,
resp_json: str) -> str:
"""
Parses response for Indy request for getting fees
:param payment_method: Payment method to use (for example, 'sov').
:param resp_json: response for Indy request for getting fees
... | [
"Parses",
"response",
"for",
"Indy",
"request",
"for",
"getting",
"fees"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L509-L543 | [
"async",
"def",
"parse_get_txn_fees_response",
"(",
"payment_method",
":",
"str",
",",
"resp_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_txn_fees_response: ... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | build_verify_payment_req | Builds Indy request for information to verify the payment receipt
:param wallet_handle: wallet handle (created by open_wallet).
:param submitter_did : (Option) DID of request sender
:param receipt: payment receipt to verify
:return: verify_txn_json: Indy request for verification receipt for transactio... | wrappers/python/indy/payment.py | async def build_verify_payment_req(wallet_handle: int,
submitter_did: str,
receipt: str) -> (str, str):
"""
Builds Indy request for information to verify the payment receipt
:param wallet_handle: wallet handle (created by open_wallet).
... | async def build_verify_payment_req(wallet_handle: int,
submitter_did: str,
receipt: str) -> (str, str):
"""
Builds Indy request for information to verify the payment receipt
:param wallet_handle: wallet handle (created by open_wallet).
... | [
"Builds",
"Indy",
"request",
"for",
"information",
"to",
"verify",
"the",
"payment",
"receipt"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L546-L582 | [
"async",
"def",
"build_verify_payment_req",
"(",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"receipt",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"lo... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Schema.create | Creates a new schema object that is written to the ledger
:param source_id: Institution's unique ID for the schema
:param name: Name of schema
:param version: Version of the schema
:param attrs: Atttributes of the schema
:param payment_handle: NYI - payment of ledger fee is take... | vcx/wrappers/python3/vcx/api/schema.py | async def create(source_id: str, name: str, version: str, attrs: list, payment_handle: int):
"""
Creates a new schema object that is written to the ledger
:param source_id: Institution's unique ID for the schema
:param name: Name of schema
:param version: Version of the schema
... | async def create(source_id: str, name: str, version: str, attrs: list, payment_handle: int):
"""
Creates a new schema object that is written to the ledger
:param source_id: Institution's unique ID for the schema
:param name: Name of schema
:param version: Version of the schema
... | [
"Creates",
"a",
"new",
"schema",
"object",
"that",
"is",
"written",
"to",
"the",
"ledger"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L65-L94 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"name",
":",
"str",
",",
"version",
":",
"str",
",",
"attrs",
":",
"list",
",",
"payment_handle",
":",
"int",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
"name",
",",
"version... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Schema.deserialize | Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
payment_handle = 0
schema1 = await Schema.... | vcx/wrappers/python3/vcx/api/schema.py | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
... | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
... | [
"Create",
"the",
"object",
"from",
"a",
"previously",
"serialized",
"object",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L97-L124 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"try",
":",
"# Todo: Find better way to access attr_names. Potential for issues.",
"schema",
"=",
"await",
"Schema",
".",
"_deserialize",
"(",
"\"vcx_schema_deserialize\"",
",",
"json",
".",
"dumps",
"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Schema.lookup | Create a new schema object from an existing ledger schema
:param source_id: Institution's personal identification for the schema
:param schema_id: Ledger schema ID for lookup
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['addre... | vcx/wrappers/python3/vcx/api/schema.py | async def lookup(source_id: str, schema_id: str):
"""
Create a new schema object from an existing ledger schema
:param source_id: Institution's personal identification for the schema
:param schema_id: Ledger schema ID for lookup
Example:
source_id = 'foobar123'
n... | async def lookup(source_id: str, schema_id: str):
"""
Create a new schema object from an existing ledger schema
:param source_id: Institution's personal identification for the schema
:param schema_id: Ledger schema ID for lookup
Example:
source_id = 'foobar123'
n... | [
"Create",
"a",
"new",
"schema",
"object",
"from",
"an",
"existing",
"ledger",
"schema"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L127-L170 | [
"async",
"def",
"lookup",
"(",
"source_id",
":",
"str",
",",
"schema_id",
":",
"str",
")",
":",
"try",
":",
"schema",
"=",
"Schema",
"(",
"source_id",
",",
"''",
",",
"''",
",",
"[",
"]",
")",
"if",
"not",
"hasattr",
"(",
"Schema",
".",
"lookup",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Schema.get_schema_id | Get the ledger ID of the object
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
payment_handle = 0
schema1 = await Schema.create(source_id, name, version, attrs, payment_handle)
id1 = await sch... | vcx/wrappers/python3/vcx/api/schema.py | async def get_schema_id(self):
"""
Get the ledger ID of the object
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
payment_handle = 0
schema1 = await Schema.create(source_id, name, vers... | async def get_schema_id(self):
"""
Get the ledger ID of the object
Example:
source_id = 'foobar123'
name = 'Address Schema'
version = '1.0'
attrs = ['address', 'city', 'state']
payment_handle = 0
schema1 = await Schema.create(source_id, name, vers... | [
"Get",
"the",
"ledger",
"ID",
"of",
"the",
"object"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L196-L213 | [
"async",
"def",
"get_schema_id",
"(",
"self",
")",
":",
"cb",
"=",
"create_cb",
"(",
"CFUNCTYPE",
"(",
"None",
",",
"c_uint32",
",",
"c_uint32",
",",
"c_char_p",
")",
")",
"c_handle",
"=",
"c_uint32",
"(",
"self",
".",
"handle",
")",
"id",
"=",
"await"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | is_pairwise_exists | Check if pairwise is exists.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did.
:return: true - if pairwise is exists, false - otherwise | wrappers/python/indy/pairwise.py | async def is_pairwise_exists(wallet_handle: int,
their_did: str) -> bool:
"""
Check if pairwise is exists.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did.
:return: true - if pairwise is exists, false - otherwise
"""
... | async def is_pairwise_exists(wallet_handle: int,
their_did: str) -> bool:
"""
Check if pairwise is exists.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did.
:return: true - if pairwise is exists, false - otherwise
"""
... | [
"Check",
"if",
"pairwise",
"is",
"exists",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L9-L37 | [
"async",
"def",
"is_pairwise_exists",
"(",
"wallet_handle",
":",
"int",
",",
"their_did",
":",
"str",
")",
"->",
"bool",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"is_pairwise_exists: >>> wallet_handle:... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | list_pairwise | Get list of saved pairwise.
:param wallet_handle: wallet handler (created by open_wallet).
:return: pairwise_list: list of saved pairwise | wrappers/python/indy/pairwise.py | async def list_pairwise(wallet_handle: int) -> str:
"""
Get list of saved pairwise.
:param wallet_handle: wallet handler (created by open_wallet).
:return: pairwise_list: list of saved pairwise
"""
logger = logging.getLogger(__name__)
logger.debug("list_pairwise: >>> wallet_handle: %r", wa... | async def list_pairwise(wallet_handle: int) -> str:
"""
Get list of saved pairwise.
:param wallet_handle: wallet handler (created by open_wallet).
:return: pairwise_list: list of saved pairwise
"""
logger = logging.getLogger(__name__)
logger.debug("list_pairwise: >>> wallet_handle: %r", wa... | [
"Get",
"list",
"of",
"saved",
"pairwise",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L80-L103 | [
"async",
"def",
"list_pairwise",
"(",
"wallet_handle",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"list_pairwise: >>> wallet_handle: %r\"",
",",
"wallet_handle",
")",
"if",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | get_pairwise | Gets pairwise information for specific their_did.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did
:return: pairwise_info_json: did info associated with their did | wrappers/python/indy/pairwise.py | async def get_pairwise(wallet_handle: int,
their_did: str) -> None:
"""
Gets pairwise information for specific their_did.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did
:return: pairwise_info_json: did info associated with their d... | async def get_pairwise(wallet_handle: int,
their_did: str) -> None:
"""
Gets pairwise information for specific their_did.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded Did
:return: pairwise_info_json: did info associated with their d... | [
"Gets",
"pairwise",
"information",
"for",
"specific",
"their_did",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L106-L135 | [
"async",
"def",
"get_pairwise",
"(",
"wallet_handle",
":",
"int",
",",
"their_did",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_pairwise: >>> wallet_handle: %r, their_d... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | set_pairwise_metadata | Save some data in the Wallet for pairwise associated with Did.
:param wallet_handle: wallet handler (created by open_wallet).
:param their_did: encoded DID
:param metadata: some extra information for pairwise
:return: Error code | wrappers/python/indy/pairwise.py | async def set_pairwise_metadata(wallet_handle: int,
their_did: str,
metadata: Optional[str]) -> None:
"""
Save some data in the Wallet for pairwise associated with Did.
:param wallet_handle: wallet handler (created by open_wallet).
:param ... | async def set_pairwise_metadata(wallet_handle: int,
their_did: str,
metadata: Optional[str]) -> None:
"""
Save some data in the Wallet for pairwise associated with Did.
:param wallet_handle: wallet handler (created by open_wallet).
:param ... | [
"Save",
"some",
"data",
"in",
"the",
"Wallet",
"for",
"pairwise",
"associated",
"with",
"Did",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L138-L170 | [
"async",
"def",
"set_pairwise_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"their_did",
":",
"str",
",",
"metadata",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | print_log | set the colors for text. | docs/how-tos/rotate-key/python/rotate_key.py | def print_log(value_color="", value_noncolor=""):
"""set the colors for text."""
HEADER = '\033[92m'
ENDC = '\033[0m'
print(HEADER + value_color + ENDC + str(value_noncolor)) | def print_log(value_color="", value_noncolor=""):
"""set the colors for text."""
HEADER = '\033[92m'
ENDC = '\033[0m'
print(HEADER + value_color + ENDC + str(value_noncolor)) | [
"set",
"the",
"colors",
"for",
"text",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/docs/how-tos/rotate-key/python/rotate_key.py#L33-L37 | [
"def",
"print_log",
"(",
"value_color",
"=",
"\"\"",
",",
"value_noncolor",
"=",
"\"\"",
")",
":",
"HEADER",
"=",
"'\\033[92m'",
"ENDC",
"=",
"'\\033[0m'",
"print",
"(",
"HEADER",
"+",
"value_color",
"+",
"ENDC",
"+",
"str",
"(",
"value_noncolor",
")",
")"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | set_runtime_config | Set libindy runtime configuration. Can be optionally called to change current params.
:param config: {
"crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default)
"collect_backtrace": Optional<bool> - whether errors backtrace should be collec... | wrappers/python/indy/libindy.py | def set_runtime_config(config: str):
"""
Set libindy runtime configuration. Can be optionally called to change current params.
:param config: {
"crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default)
"collect_backtrace": Optional... | def set_runtime_config(config: str):
"""
Set libindy runtime configuration. Can be optionally called to change current params.
:param config: {
"crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default)
"collect_backtrace": Optional... | [
"Set",
"libindy",
"runtime",
"configuration",
".",
"Can",
"be",
"optionally",
"called",
"to",
"change",
"current",
"params",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/libindy.py#L196-L216 | [
"def",
"set_runtime_config",
"(",
"config",
":",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"set_runtime_config: >>> config: %r\"",
",",
"config",
")",
"c_config",
"=",
"c_char_p",
"(",
"co... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Proof.create | Builds a generic proof object
:param source_id: Tag associated by user of sdk
:param name: Name of the Proof
:param requested_attrs: Attributes associated with the Proof
:param revocation_interval: interval applied to all requested attributes indicating when the claim must be valid (NOT ... | vcx/wrappers/python3/vcx/api/proof.py | async def create(source_id: str, name: str, requested_attrs: list, revocation_interval: dict, requested_predicates: list = []):
"""
Builds a generic proof object
:param source_id: Tag associated by user of sdk
:param name: Name of the Proof
:param requested_attrs: Attributes ass... | async def create(source_id: str, name: str, requested_attrs: list, revocation_interval: dict, requested_predicates: list = []):
"""
Builds a generic proof object
:param source_id: Tag associated by user of sdk
:param name: Name of the Proof
:param requested_attrs: Attributes ass... | [
"Builds",
"a",
"generic",
"proof",
"object",
":",
"param",
"source_id",
":",
"Tag",
"associated",
"by",
"user",
"of",
"sdk",
":",
"param",
"name",
":",
"Name",
"of",
"the",
"Proof",
":",
"param",
"requested_attrs",
":",
"Attributes",
"associated",
"with",
... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L27-L52 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"name",
":",
"str",
",",
"requested_attrs",
":",
"list",
",",
"revocation_interval",
":",
"dict",
",",
"requested_predicates",
":",
"list",
"=",
"[",
"]",
")",
":",
"constructor_params",
"=",
"("... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Proof.deserialize | Builds a Proof object with defined attributes.
Attributes are provided by a previous call to the serialize function.
:param data:
Example:
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_... | vcx/wrappers/python3/vcx/api/proof.py | async def deserialize(data: dict):
"""
Builds a Proof object with defined attributes.
Attributes are provided by a previous call to the serialize function.
:param data:
Example:
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": ... | async def deserialize(data: dict):
"""
Builds a Proof object with defined attributes.
Attributes are provided by a previous call to the serialize function.
:param data:
Example:
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": ... | [
"Builds",
"a",
"Proof",
"object",
"with",
"defined",
"attributes",
".",
"Attributes",
"are",
"provided",
"by",
"a",
"previous",
"call",
"to",
"the",
"serialize",
"function",
".",
":",
"param",
"data",
":",
"Example",
":",
"name",
"=",
"proof",
"name",
"req... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L55-L70 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"return",
"await",
"Proof",
".",
"_deserialize",
"(",
"\"vcx_proof_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
".",
"get",
"(",
"'data'",
")",
".",
"get",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Proof.request_proof | Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_name":"Faber Student Info", "schema_version":"1.0",... | vcx/wrappers/python3/vcx/api/proof.py | async def request_proof(self, connection: Connection):
"""
Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schem... | async def request_proof(self, connection: Connection):
"""
Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schem... | [
"Example",
":",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
"phone_number",
")",
"name",
"=",
"proof",
"name",
"requested_attrs",
"=",
"[",
"{",
"name",
":",
"age",
"restrictions... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L116-L138 | [
"async",
"def",
"request_proof",
"(",
"self",
",",
"connection",
":",
"Connection",
")",
":",
"if",
"not",
"hasattr",
"(",
"Proof",
".",
"request_proof",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_proof_send_request: Creating cal... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | Proof.get_proof | Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_name":"Faber Student Info", "schema_version":"1.0",... | vcx/wrappers/python3/vcx/api/proof.py | async def get_proof(self, connection: Connection) -> list:
"""
Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:s... | async def get_proof(self, connection: Connection) -> list:
"""
Example:
connection = await Connection.create(source_id)
await connection.connect(phone_number)
name = "proof name"
requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:s... | [
"Example",
":",
"connection",
"=",
"await",
"Connection",
".",
"create",
"(",
"source_id",
")",
"await",
"connection",
".",
"connect",
"(",
"phone_number",
")",
"name",
"=",
"proof",
"name",
"requested_attrs",
"=",
"[",
"{",
"name",
":",
"age",
"restrictions... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L140-L165 | [
"async",
"def",
"get_proof",
"(",
"self",
",",
"connection",
":",
"Connection",
")",
"->",
"list",
":",
"if",
"not",
"hasattr",
"(",
"Proof",
".",
"get_proof",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_get_proof: Creating ca... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | vcx_agent_provision | Provision an agent in the agency, populate configuration and wallet for this agent.
Example:
import json
enterprise_config = {
'agency_url': 'http://localhost:8080',
'agency_did': 'VsKV7grR1BUE29mG2Fm2kX',
'agency_verkey': "Hezce2UWMZ3wUhVkh2LfKSs8nDzWwzs2Win7EzNN3YaR",
'wall... | vcx/wrappers/python3/vcx/api/utils.py | async def vcx_agent_provision(config: str) -> None:
"""
Provision an agent in the agency, populate configuration and wallet for this agent.
Example:
import json
enterprise_config = {
'agency_url': 'http://localhost:8080',
'agency_did': 'VsKV7grR1BUE29mG2Fm2kX',
'agency_verkey... | async def vcx_agent_provision(config: str) -> None:
"""
Provision an agent in the agency, populate configuration and wallet for this agent.
Example:
import json
enterprise_config = {
'agency_url': 'http://localhost:8080',
'agency_did': 'VsKV7grR1BUE29mG2Fm2kX',
'agency_verkey... | [
"Provision",
"an",
"agent",
"in",
"the",
"agency",
"populate",
"configuration",
"and",
"wallet",
"for",
"this",
"agent",
".",
"Example",
":",
"import",
"json",
"enterprise_config",
"=",
"{",
"agency_url",
":",
"http",
":",
"//",
"localhost",
":",
"8080",
"ag... | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L6-L37 | [
"async",
"def",
"vcx_agent_provision",
"(",
"config",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"if",
"not",
"hasattr",
"(",
"vcx_agent_provision",
",",
"\"cb\"",
")",
":",
"logger",
".",
"debug",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | vcx_ledger_get_fees | Get ledger fees from the sovrin network
Example:
fees = await vcx_ledger_get_fees()
:return: JSON representing fees | vcx/wrappers/python3/vcx/api/utils.py | async def vcx_ledger_get_fees() -> str:
"""
Get ledger fees from the sovrin network
Example:
fees = await vcx_ledger_get_fees()
:return: JSON representing fees
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_ledger_get_fees, "cb"):
logger.debug("vcx_ledger_get_fees: ... | async def vcx_ledger_get_fees() -> str:
"""
Get ledger fees from the sovrin network
Example:
fees = await vcx_ledger_get_fees()
:return: JSON representing fees
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_ledger_get_fees, "cb"):
logger.debug("vcx_ledger_get_fees: ... | [
"Get",
"ledger",
"fees",
"from",
"the",
"sovrin",
"network",
"Example",
":",
"fees",
"=",
"await",
"vcx_ledger_get_fees",
"()",
":",
"return",
":",
"JSON",
"representing",
"fees"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L60-L77 | [
"async",
"def",
"vcx_ledger_get_fees",
"(",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"if",
"not",
"hasattr",
"(",
"vcx_ledger_get_fees",
",",
"\"cb\"",
")",
":",
"logger",
".",
"debug",
"(",
"\"vcx_ledger_get_f... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | vcx_messages_download | Retrieve messages from the specified connection
:param status:
:param uids:
:param pw_dids:
:return: | vcx/wrappers/python3/vcx/api/utils.py | async def vcx_messages_download(status: str = None, uids: str = None, pw_dids: str = None) -> str:
"""
Retrieve messages from the specified connection
:param status:
:param uids:
:param pw_dids:
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_messages_download, ... | async def vcx_messages_download(status: str = None, uids: str = None, pw_dids: str = None) -> str:
"""
Retrieve messages from the specified connection
:param status:
:param uids:
:param pw_dids:
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_messages_download, ... | [
"Retrieve",
"messages",
"from",
"the",
"specified",
"connection",
":",
"param",
"status",
":",
":",
"param",
"uids",
":",
":",
"param",
"pw_dids",
":",
":",
"return",
":"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L79-L115 | [
"async",
"def",
"vcx_messages_download",
"(",
"status",
":",
"str",
"=",
"None",
",",
"uids",
":",
"str",
"=",
"None",
",",
"pw_dids",
":",
"str",
"=",
"None",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | vcx_messages_update_status | Update the status of messages from the specified connection
:param msg_json:
:return: | vcx/wrappers/python3/vcx/api/utils.py | async def vcx_messages_update_status(msg_json: str):
"""
Update the status of messages from the specified connection
:param msg_json:
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_messages_update_status, "cb"):
logger.debug("vcx_messages_update_status: Creatin... | async def vcx_messages_update_status(msg_json: str):
"""
Update the status of messages from the specified connection
:param msg_json:
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_messages_update_status, "cb"):
logger.debug("vcx_messages_update_status: Creatin... | [
"Update",
"the",
"status",
"of",
"messages",
"from",
"the",
"specified",
"connection",
":",
"param",
"msg_json",
":",
":",
"return",
":"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L118-L139 | [
"async",
"def",
"vcx_messages_update_status",
"(",
"msg_json",
":",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"if",
"not",
"hasattr",
"(",
"vcx_messages_update_status",
",",
"\"cb\"",
")",
":",
"logger",
".",
"debug",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | crypto_sign | Signs a message with a key.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param wallet_handle: wallet handler (created by open_wallet).
:param signer_vk: id (verkey) of my key. The key must be created by calling create_key or create_and_st... | wrappers/python/indy/crypto.py | async def crypto_sign(wallet_handle: int,
signer_vk: str,
msg: bytes) -> bytes:
"""
Signs a message with a key.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param wallet_handle: wallet handle... | async def crypto_sign(wallet_handle: int,
signer_vk: str,
msg: bytes) -> bytes:
"""
Signs a message with a key.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param wallet_handle: wallet handle... | [
"Signs",
"a",
"message",
"with",
"a",
"key",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L117-L156 | [
"async",
"def",
"crypto_sign",
"(",
"wallet_handle",
":",
"int",
",",
"signer_vk",
":",
"str",
",",
"msg",
":",
"bytes",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"crypto_sig... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | crypto_verify | Verify a signature with a verkey.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param signer_vk: verkey of signer of the message
:param msg: message that has been signed
:param signature: a signature to be verified
:return: valid: t... | wrappers/python/indy/crypto.py | async def crypto_verify(signer_vk: str,
msg: bytes,
signature: bytes) -> bool:
"""
Verify a signature with a verkey.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param signer_vk: verkey o... | async def crypto_verify(signer_vk: str,
msg: bytes,
signature: bytes) -> bool:
"""
Verify a signature with a verkey.
Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID.
:param signer_vk: verkey o... | [
"Verify",
"a",
"signature",
"with",
"a",
"verkey",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L159-L196 | [
"async",
"def",
"crypto_verify",
"(",
"signer_vk",
":",
"str",
",",
"msg",
":",
"bytes",
",",
"signature",
":",
"bytes",
")",
"->",
"bool",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"crypto_veri... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | auth_crypt | **** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD ****
Encrypt a message by authenticated-encryption scheme.
Sender can encrypt a confidential message specifically for Recipient, using Sender's public key.
Using Recipient's public key, Sender can compute a shared secret key.
Using Sender'... | wrappers/python/indy/crypto.py | async def auth_crypt(wallet_handle: int,
sender_vk: str,
recipient_vk: str,
msg: bytes) -> bytes:
"""
**** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD ****
Encrypt a message by authenticated-encryption scheme.
Sender can encr... | async def auth_crypt(wallet_handle: int,
sender_vk: str,
recipient_vk: str,
msg: bytes) -> bytes:
"""
**** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD ****
Encrypt a message by authenticated-encryption scheme.
Sender can encr... | [
"****",
"THIS",
"FUNCTION",
"WILL",
"BE",
"DEPRECATED",
"USE",
"pack_message",
"INSTEAD",
"****"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L199-L253 | [
"async",
"def",
"auth_crypt",
"(",
"wallet_handle",
":",
"int",
",",
"sender_vk",
":",
"str",
",",
"recipient_vk",
":",
"str",
",",
"msg",
":",
"bytes",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | auth_decrypt | **** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD ****
Decrypt a message by authenticated-encryption scheme.
Sender can encrypt a confidential message specifically for Recipient, using Sender's public key.
Using Recipient's public key, Sender can compute a shared secret key.
Using Sende... | wrappers/python/indy/crypto.py | async def auth_decrypt(wallet_handle: int,
recipient_vk: str,
encrypted_msg: bytes) -> (str, bytes):
"""
**** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD ****
Decrypt a message by authenticated-encryption scheme.
Sender can encrypt a confid... | async def auth_decrypt(wallet_handle: int,
recipient_vk: str,
encrypted_msg: bytes) -> (str, bytes):
"""
**** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD ****
Decrypt a message by authenticated-encryption scheme.
Sender can encrypt a confid... | [
"****",
"THIS",
"FUNCTION",
"WILL",
"BE",
"DEPRECATED",
"USE",
"unpack_message",
"INSTEAD",
"****"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L256-L308 | [
"async",
"def",
"auth_decrypt",
"(",
"wallet_handle",
":",
"int",
",",
"recipient_vk",
":",
"str",
",",
"encrypted_msg",
":",
"bytes",
")",
"->",
"(",
"str",
",",
"bytes",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logge... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | anon_crypt | Encrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipient can decrypt these messages, using its private key.
While the Recipient can verify the integrity of the message, it cannot verify the identity of ... | wrappers/python/indy/crypto.py | async def anon_crypt(recipient_vk: str,
msg: bytes) -> bytes:
"""
Encrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipient can decrypt these messages, using its private key.
... | async def anon_crypt(recipient_vk: str,
msg: bytes) -> bytes:
"""
Encrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipient can decrypt these messages, using its private key.
... | [
"Encrypts",
"a",
"message",
"by",
"anonymous",
"-",
"encryption",
"scheme",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L311-L352 | [
"async",
"def",
"anon_crypt",
"(",
"recipient_vk",
":",
"str",
",",
"msg",
":",
"bytes",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"anon_crypt: >>> recipient_vk: %r, msg: %r\"",
",... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | anon_decrypt | Decrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipient can decrypt these messages, using its private key.
While the Recipient can verify the integrity of the message, it cannot verify the identity of ... | wrappers/python/indy/crypto.py | async def anon_decrypt(wallet_handle: int,
recipient_vk: str,
encrypted_msg: bytes) -> bytes:
"""
Decrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipie... | async def anon_decrypt(wallet_handle: int,
recipient_vk: str,
encrypted_msg: bytes) -> bytes:
"""
Decrypts a message by anonymous-encryption scheme.
Sealed boxes are designed to anonymously send messages to a Recipient given its public key.
Only the Recipie... | [
"Decrypts",
"a",
"message",
"by",
"anonymous",
"-",
"encryption",
"scheme",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L355-L400 | [
"async",
"def",
"anon_decrypt",
"(",
"wallet_handle",
":",
"int",
",",
"recipient_vk",
":",
"str",
",",
"encrypted_msg",
":",
"bytes",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | pack_message | Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental)
Note to use DID keys with this function you can call did.key_for_did to get key id (verkey)
for specific DID.
#Params
command_handle: command handle to map callback to user context.
wallet_handle: walle... | wrappers/python/indy/crypto.py | async def pack_message(wallet_handle: int,
message: str,
recipient_verkeys: list,
sender_verkey: Optional[str]) -> bytes:
"""
Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental)
Note to use DID ... | async def pack_message(wallet_handle: int,
message: str,
recipient_verkeys: list,
sender_verkey: Optional[str]) -> bytes:
"""
Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental)
Note to use DID ... | [
"Packs",
"a",
"message",
"by",
"encrypting",
"the",
"message",
"and",
"serializes",
"it",
"in",
"a",
"JWE",
"-",
"like",
"format",
"(",
"Experimental",
")"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L403-L450 | [
"async",
"def",
"pack_message",
"(",
"wallet_handle",
":",
"int",
",",
"message",
":",
"str",
",",
"recipient_verkeys",
":",
"list",
",",
"sender_verkey",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | unpack_message | Unpacks a JWE-like formatted message outputted by pack_message (Experimental)
#Params
command_handle: command handle to map callback to user context.
wallet_handle: wallet handler (created by open_wallet)
message: the output of a pack message
#Returns -> See HIPE 0028 for details
(Authcrypt mo... | wrappers/python/indy/crypto.py | async def unpack_message(wallet_handle: int,
jwe: bytes) -> bytes:
"""
Unpacks a JWE-like formatted message outputted by pack_message (Experimental)
#Params
command_handle: command handle to map callback to user context.
wallet_handle: wallet handler (created by open_wallet... | async def unpack_message(wallet_handle: int,
jwe: bytes) -> bytes:
"""
Unpacks a JWE-like formatted message outputted by pack_message (Experimental)
#Params
command_handle: command handle to map callback to user context.
wallet_handle: wallet handler (created by open_wallet... | [
"Unpacks",
"a",
"JWE",
"-",
"like",
"formatted",
"message",
"outputted",
"by",
"pack_message",
"(",
"Experimental",
")"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L453-L501 | [
"async",
"def",
"unpack_message",
"(",
"wallet_handle",
":",
"int",
",",
"jwe",
":",
"bytes",
")",
"->",
"bytes",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"unpack_message: >>> wallet_handle: %r, jwe: %... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | vcx_init | Initializes VCX with config file.
:param config_path: String
Example:
await vcx_init('/home/username/vcxconfig.json')
:return: | vcx/wrappers/python3/vcx/api/vcx_init.py | async def vcx_init(config_path: str) -> None:
"""
Initializes VCX with config file.
:param config_path: String
Example:
await vcx_init('/home/username/vcxconfig.json')
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_init, "cb"):
logger.debug("vcx_init: C... | async def vcx_init(config_path: str) -> None:
"""
Initializes VCX with config file.
:param config_path: String
Example:
await vcx_init('/home/username/vcxconfig.json')
:return:
"""
logger = logging.getLogger(__name__)
if not hasattr(vcx_init, "cb"):
logger.debug("vcx_init: C... | [
"Initializes",
"VCX",
"with",
"config",
"file",
".",
":",
"param",
"config_path",
":",
"String",
"Example",
":",
"await",
"vcx_init",
"(",
"/",
"home",
"/",
"username",
"/",
"vcxconfig",
".",
"json",
")",
":",
"return",
":"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/vcx_init.py#L7-L28 | [
"async",
"def",
"vcx_init",
"(",
"config_path",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"if",
"not",
"hasattr",
"(",
"vcx_init",
",",
"\"cb\"",
")",
":",
"logger",
".",
"debug",
"(",
"\"vcx_... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | CredentialDef.create | Creates a new CredentialDef object that is written to the ledger
:param source_id: Institution's unique ID for the credential definition
:param name: Name of credential definition
:param schema_id: The schema ID given during the creation of the schema
:param payment_handle: NYI - paymen... | vcx/wrappers/python3/vcx/api/credential_def.py | async def create(source_id: str, name: str, schema_id: str, payment_handle: int):
"""
Creates a new CredentialDef object that is written to the ledger
:param source_id: Institution's unique ID for the credential definition
:param name: Name of credential definition
:param schema... | async def create(source_id: str, name: str, schema_id: str, payment_handle: int):
"""
Creates a new CredentialDef object that is written to the ledger
:param source_id: Institution's unique ID for the credential definition
:param name: Name of credential definition
:param schema... | [
"Creates",
"a",
"new",
"CredentialDef",
"object",
"that",
"is",
"written",
"to",
"the",
"ledger"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L46-L76 | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"name",
":",
"str",
",",
"schema_id",
":",
"str",
",",
"payment_handle",
":",
"int",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
"name",
",",
"schema_id",
")",
"c_source_id",
"=... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | CredentialDef.deserialize | Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle)... | vcx/wrappers/python3/vcx/api/credential_def.py | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await Credentia... | async def deserialize(data: dict):
"""
Create the object from a previously serialized object.
:param data: The output of the "serialize" call
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await Credentia... | [
"Create",
"the",
"object",
"from",
"a",
"previously",
"serialized",
"object",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L94-L116 | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"try",
":",
"credential_def",
"=",
"await",
"CredentialDef",
".",
"_deserialize",
"(",
"\"vcx_credentialdef_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
"[",
"'da... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | CredentialDef.get_cred_def_id | Get the ledger ID of the object
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle)
assert await credential_def.get_cred_def_id() == '2hoqvcwupRTUNkXn6ArY... | vcx/wrappers/python3/vcx/api/credential_def.py | async def get_cred_def_id(self):
"""
Get the ledger ID of the object
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle)
assert await cred... | async def get_cred_def_id(self):
"""
Get the ledger ID of the object
Example:
source_id = 'foobar123'
schema_name = 'Schema Name'
payment_handle = 0
credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle)
assert await cred... | [
"Get",
"the",
"ledger",
"ID",
"of",
"the",
"object"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L119-L134 | [
"async",
"def",
"get_cred_def_id",
"(",
"self",
")",
":",
"cb",
"=",
"create_cb",
"(",
"CFUNCTYPE",
"(",
"None",
",",
"c_uint32",
",",
"c_uint32",
",",
"c_char_p",
")",
")",
"c_handle",
"=",
"c_uint32",
"(",
"self",
".",
"handle",
")",
"cred_def_id",
"="... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | create_pool_ledger_config | Creates a new local pool ledger configuration that can be used later to connect pool nodes.
:param config_name: Name of the pool ledger configuration.
:param config: (optional) Pool configuration json. if NULL, then default config will be used. Example:
{
"genesis_txn": string (optional), A... | wrappers/python/indy/pool.py | async def create_pool_ledger_config(config_name: str,
config: Optional[str]) -> None:
"""
Creates a new local pool ledger configuration that can be used later to connect pool nodes.
:param config_name: Name of the pool ledger configuration.
:param config: (optional) ... | async def create_pool_ledger_config(config_name: str,
config: Optional[str]) -> None:
"""
Creates a new local pool ledger configuration that can be used later to connect pool nodes.
:param config_name: Name of the pool ledger configuration.
:param config: (optional) ... | [
"Creates",
"a",
"new",
"local",
"pool",
"ledger",
"configuration",
"that",
"can",
"be",
"used",
"later",
"to",
"connect",
"pool",
"nodes",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L10-L42 | [
"async",
"def",
"create_pool_ledger_config",
"(",
"config_name",
":",
"str",
",",
"config",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"create_p... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | refresh_pool_ledger | Refreshes a local copy of a pool ledger and updates pool nodes connections.
:param handle: pool handle returned by indy_open_pool_ledger
:return: Error code | wrappers/python/indy/pool.py | async def refresh_pool_ledger(handle: int) -> None:
"""
Refreshes a local copy of a pool ledger and updates pool nodes connections.
:param handle: pool handle returned by indy_open_pool_ledger
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("refresh_pool_ledger: >... | async def refresh_pool_ledger(handle: int) -> None:
"""
Refreshes a local copy of a pool ledger and updates pool nodes connections.
:param handle: pool handle returned by indy_open_pool_ledger
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("refresh_pool_ledger: >... | [
"Refreshes",
"a",
"local",
"copy",
"of",
"a",
"pool",
"ledger",
"and",
"updates",
"pool",
"nodes",
"connections",
"."
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L88-L111 | [
"async",
"def",
"refresh_pool_ledger",
"(",
"handle",
":",
"int",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"refresh_pool_ledger: >>> config_name: %r\"",
",",
"handle",
")",
"if",
"... | 55240dc170308d7883c48f03f308130a6d077be6 |
train | list_pools | Lists names of created pool ledgers
:return: Error code | wrappers/python/indy/pool.py | async def list_pools() -> None:
"""
Lists names of created pool ledgers
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("list_pools: >>> ")
if not hasattr(list_pools, "cb"):
logger.debug("list_pools: Creating callback")
list_pools.cb = create_cb(CF... | async def list_pools() -> None:
"""
Lists names of created pool ledgers
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("list_pools: >>> ")
if not hasattr(list_pools, "cb"):
logger.debug("list_pools: Creating callback")
list_pools.cb = create_cb(CF... | [
"Lists",
"names",
"of",
"created",
"pool",
"ledgers",
":",
"return",
":",
"Error",
"code"
] | hyperledger/indy-sdk | python | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L113-L130 | [
"async",
"def",
"list_pools",
"(",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"list_pools: >>> \"",
")",
"if",
"not",
"hasattr",
"(",
"list_pools",
",",
"\"cb\"",
")",
":",
"lo... | 55240dc170308d7883c48f03f308130a6d077be6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.