resolver

package
v0.6.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastTx

func BroadcastTx(ctx context.Context, tx []byte) (*ctypes.ResultBroadcastTx, error)

BroadcastTx broadcasts a transaction to the sonr chain

func DeleteAccountInfo

func DeleteAccountInfo(key string) error

DeleteAccountInfo deletes a record from the IPFS store for the given controller

func DeleteKeyShare

func DeleteKeyShare(key string) error

DeleteKeyShare deletes a record from the IPFS store for the given controller

func GetAccountInfo

func GetAccountInfo(key string) ([]string, error)

GetAccountInfo gets a record from the IPFS store for the given controller

func GetAllDIDs

func GetAllDIDs(ctx context.Context) ([]*identitytypes.DidDocument, error)

GetAllDIDs returns all DID documents

func GetAllServices

func GetAllServices(ctx context.Context) ([]*identitytypes.Service, error)

GetAllServices returns all services

func GetDID

GetDID returns the DID document with the given id

func GetKeyShare

func GetKeyShare(key string) ([]byte, error)

GetKeyShare gets a record from the IPFS store for the given controller

func GetService

func GetService(ctx context.Context, origin string) (*identitytypes.Service, error)

GetService returns the service with the given id

func InsertAccountInfo

func InsertAccountInfo(accDid string, keyShareDids []string) error

InsertAccountInfo inserts a record into the IPFS store for the given controller

func InsertKSItem

func InsertKSItem(did string, bz []byte) error

InsertKeyShare inserts a record into the IPFS store for the given controller

func InsertKeyShare

func InsertKeyShare(i KVStoreItem) error

InsertKeyShare inserts a record into the IPFS store for the given controller

func ListAccountInfo

func ListAccountInfo() (map[string][]string, error)

ListAccountInfo lists all records in the IPFS store for the given controller

func ListKeyShares

func ListKeyShares(accDid string) (map[string][]byte, error)

ListKeyShares lists all records in the IPFS store for the given controller

Types

type BasicStoreItem

type BasicStoreItem struct {
	// contains filtered or unexported fields
}

func NewBasicStoreItem

func NewBasicStoreItem(did string, data []byte) *BasicStoreItem

func (*BasicStoreItem) Bytes

func (i *BasicStoreItem) Bytes() []byte

func (*BasicStoreItem) Did

func (i *BasicStoreItem) Did() string

type KVStoreItem

type KVStoreItem interface {
	Bytes() []byte
	Did() string
}

type KeyShareParseResult

type KeyShareParseResult struct {
	CoinType       crypto.CoinType
	AccountAddress string
	AccountName    string
	KeyShareName   string
}

Jump to

Keyboard shortcuts

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