Documentation ¶
Overview ¶
Package did is corresponding Go package for libindy's anoncreds namespace. We suggest that you read indy SDK documentation for more information.
Index ¶
- func Create(wallet int) ctx.Channel
- func CreateAndStore(wallet int, did Did) ctx.Channel
- func Endpoint(wallet, pool int, did string) ctx.Channel
- func Key(pool, wallet int, didName string) ctx.Channel
- func KeyAndMeta(wallet int, did string) ctx.Channel
- func List(wallet int) ctx.Channel
- func LocalKey(wallet int, did string) ctx.Channel
- func Meta(wallet int, did string) ctx.Channel
- func SetEndpoint(wallet int, did, address, key string) ctx.Channel
- func SetMeta(wallet int, did, meta string) ctx.Channel
- func StoreTheir(wallet int, idJSON string) ctx.Channel
- type Did
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a DID to a wallet with empty seed which means that seed is generated by indy.
func CreateAndStore ¶
CreateAndStore creates a DID to a wallet with JSON DID configuration. Use this if DID seed is needed.
func Endpoint ¶
Endpoint reads an endpoint values from a wallet and from a ledger if wallet does not have it.
func Key ¶
Key returns DIDs key from wallet. Indy's internal version tries to get the key from the ledger if it cannot get from wallet. NOTE! Because we have our Ledger Plugin system at the top of the wrappers we cannot guarantee that ledger fetch will work. Make sure that the key is stored to the wallet.
func KeyAndMeta ¶
KeyAndMeta fetches the key and meta data of the DID.
func LocalKey ¶
LocalKey reads the DID's key from a wallet. Use this instead of Key function to prevent unnecessary ledger read.
func SetEndpoint ¶
SetEndpoint sets an endpoint and an endpoint key for a DID. Note that this function does not write it to a ledger even the Key function is capable to fetch endpoint data from a ledger.