Categorygithub.com/payprotocol/kiesnet-cc-id
modulepackage
1.3.2
Repository: https://github.com/payprotocol/kiesnet-cc-id.git
Documentation: pkg.go.dev

# README

Kiesnet Identity Chaincode

API

method func [arg1, arg2, ... ] {trs1, trs2, ... }

  • method : query or invoke
  • func : function name
  • [arg] : mandatory argument
  • [arg] : optional argument
  • {trs} : mandatory transient
  • {trs} : optional transient

query get

  • Get invoker's identity { kid, sn }

query kid

  • Get invoker's KID

query list [bookmark]

  • Get invoker's certificates list

invoke lock

  • Lock the identity with the invoker's certificate

invoke register

  • Register invoker's certificate

invoke revoke [serial_number]

  • Revoke the certificate

invoke unlock

  • Unlock the identity with the invoker's certificate
  • The invoker's certificate must be the certificate which was used to lock the identity.

query ver

  • Get version

# Functions

CreateQueryKIDByID _.
CreateQueryNotRevokedCertificates _.
NewCertificate _.
NewIdentity _.
NewIdentityStub _.
NewKID _.
NewPIN _.
NewQueryResult _.

# Constants

CertificatesFetchSize _.
QueryKIDByID _ { "selector": { "@kid": "%s" }, "limit": 1, "use_index": ["kid", "id"] } */.
QueryNotRevokedCertificates _ { "selector": { "@certificate": "%s", "revoke_time": { "$exists": false } }, "use_index": ["certificate", "not-revoked"] } */.

# Structs

Certificate _.
Chaincode _.
Identity _.
IdentityStub _.
KID _.
MismatchedPINError _.
NotLockedCertificateError _.
NotRegisteredCertificateError _.
PIN _.
QueryResult _.
ResponsibleErrorImpl _.
RevokedCertificateError _.

# Interfaces

Payload _.
ResponsibleError is the interface used to distinguish responsible errors.

# Type aliases

TxFunc _.