cheqd-sdk
(forked from Evernym VDR Tools).build_create_did_request(id, verkey, alias)
indy_crypto_sign(did, verkey)
build_tx(pool_alias, pub_key, builded_request, account_number, account_sequence, max_gas, max_coin_amount, denom, timeout_height, memo)
cheqd_keys_sign(wallet_handle, key_alias, tx)
.broadcast_tx_commit(pool_alias, signed)
.hash
: Transaction hashheight
: Ledger heightbuild_create_did_request(id, verkey, alias)
id
(base58-encoded string): Target DID as base58-encoded string for 16 or 32 byte DID valueverkey
(base58-encoded string, possibly starting with ""; optional): Target verification key. It can start with "", which means that it is an abbreviated verkey
and should be 16 bytes long when decoded. Otherwise, it's a full verkey
which should be 32 bytes long when decoded.alias
(string; optional)key
(string): A unique key is used to store this DID in a stateCreateDidRequest
must be signed by the DID from id
field. It means that this DID must be an owner of this DID transaction.build_update_did_request(id, verkey, alias)
id
(base58-encoded string): Target DID as base58-encoded string for 16 or 32 byte DID value.verkey
(base58-encoded string, possibly starting with ""; optional): Target verification key. It can start with "", which means that it is an abbreviated verkey
and should be 16 bytes long when decoded. Otherwise, it's a full verkey
which should be 32 bytes long when decoded.alias
(string; optional).key
(string): A unique key is used to store this DID in a stateid
from UpdateDidRequest
must already be in a ledger created by CreateDidRequest
UpdateDidRequest
must be signed by the DID from id
field. It means that this DID must be an owner of this DID transaction.build_query_get_did(id)
id
(base58-encoded string): Target DID as base58-encoded string for 16 or 32 byte DID value.path
: Path for RPC endpoint for cheqd pooldata
: Query with an entity key from a state. String did:<id>
encoded to bytesheight
: Ledger height (size). None
for auto calculationprove
: Boolean value. True
for getting state proof in a pool responsebuild_create_attrib_request(did, raw)
did
(base58-encoded string): Target DID as base58-encoded string for 16 or 32 byte DID value.raw
(JSON; mutually exclusive with hash
and enc
): Raw data represented as JSON, where the key is attribute name and value is attribute value.key
(string): A unique key is used to store these attributes in a stateid
from UpdateAttribRequest
must already be in a ledger created by CreateDidRequest
CreateAttribRequest
must be signed by the DID from did
field. It means that this DID must be an owner of this ATTRIB transaction.build_update_attrib_request(id, raw)
did
(base58-encoded string): Target DID as base58-encoded string for 16 or 32 byte DID value.raw
(JSON; mutually exclusive with hash
and enc
): Raw data represented as JSON, where the key is attribute name and value is attribute value.key
(string): A unique key is used to store these attributes in a stateid
from UpdateAttribRequest
must already be in a ledger created by CreateDidRequest
UpdateAttribRequest
must be signed by DID from did
field. It means that this DID must be an owner of this ATTRIB transaction.build_query_get_attrib(did)
did
(base58-encoded string) Target DID as base58-encoded string for 16 or 32 byte DID value.path
: Path for RPC endpoint for cheqd pooldata
: Query with an entity key from a state. String did:<id>
encoded to bytesheight
: Ledger height (size). None
for auto calculationprove
: Boolean value. True
for getting state proof in a pool responsebuild\_create\_schema\_request\(version, name, attr\_names\)
attr_names
(array): Array of attribute name strings (125 attributes maximum)name
(string): Schema's name stringversion
(string): Schema's version stringkey
(string): A key is used to store this schema in a stateowner
field must already be in a ledger created by CreateDidRequest
CreateSchemaRequest
must be signed by DID from owner
field.build\_query\_get\_schema\(name, version, owner\)
name
(string): Schema's name stringversion
(string): Schema's version stringowner
(string): Schema's owner didpath
: Path for RPC Endpoint for cheqd pooldata
: Query with an entity key from a state. String schema:<owner>:<name>:<version>
encoded to bytesheight
: Ledger height (size). None
for auto calculation;prove
: Boolean value. True
for getting state proof in a pool response.build\_create\_cred\_def\_request\(cred\_def, schema\_id, signature\_type, tag\)
cred_def
(dict): Dictionary with Credential Definition's data:primary
(dict): Primary credential public keyrevocation
(dict): Revocation credential public keyschema_id
(string): Schema's key from a statesignature_type
(string): Type of the Credential Definition (that is credential signature). CL
(Camenisch-Lysyanskaya) is the only supported type now.tag
(string, optional): A unique tag to have multiple public keys for the same Schema and type issued by the same DID. A default tag tag
will be used if not specified.key
(string): A unique key that is used to store this Credential Definition in a stateowner
field must already be in a ledger created by CreateDidRequest
CreateCredDefRequest
must be signed by DID from owner
field.build\_query\_get\_cred\_def\(name, version, owner\)
schema_id
(string): Schema's key from a statesignature_type
(string): Type of the Credential Definition (that is credential signature). CL (Camenisch-Lysyanskaya) is the only supported type now.owner
(string): Credential Definition's owner DIDtag
(string, optional): A unique tag to have multiple public keys for the same Schema and type issued by the same DID. A default tag tag
will be used if not specified.path
: Path for RPC endpoint for cheqd pooldata
: Query with an entity key from a state. String cred_def:<owner>:<schema_id>:<tag>:<signature_type>
encoded to bytesheight
: Ledger height (size). None
for auto calculationprove
: Boolean value. True
for getting state proof in a pool response.