pairwise

package
v0.30.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package pairwise is corresponding Go package for libindy's pairwise namespace. We suggest that you read indy SDK documentation for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(wallet int, theirDID, myDID, metaData string) ctx.Channel

Create creates a new pairwise to wallet with the argumets.

func Exists

func Exists(wallet int, theirDID string) ctx.Channel

Exists returns true if pairwise exists in the wallet.

func Get

func Get(wallet int, theirDID string) ctx.Channel

Get returns a pairwise data with their DID.

func List

func List(wallet int) ctx.Channel

List lists lists all of the pairwise in the wallet.

func SetMeta

func SetMeta(wallet int, theirDID, meta string) ctx.Channel

SetMeta sets the meta data for their DID.

Types

type Data

type Data struct {
	MyDid    string `json:"my_did,omitempty"`
	TheirDid string `json:"their_did,omitempty"`
	Metadata string `json:"metadata,omitempty"`
}

Data is a pairwise data saved to indy wallet.

func NewData

func NewData(js string) []Data

NewData creates a pairwise data from a string returned by indy pairwise function. Note! The indy's string is buggy, that's why this function removes unnecessary \ characters from it before JSON unmarshal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL