resolver

package
v0.6.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 12 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 DeleteRecord

func DeleteRecord(key string) error

DeleteRecord deletes 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 GetRecord

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

GetRecord 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 InsertRecord

func InsertRecord(key string, value interface{}) error

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

func ListRecords

func ListRecords() (map[string][]byte, error)

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

Types

type APIEndpoint

type APIEndpoint string
const (
	// List of known origin api endpoints.
	SonrLocalRpcOrigin  APIEndpoint = "localhost:9090"
	SonrPublicRpcOrigin APIEndpoint = "142.93.116.204:9090"
)

func (APIEndpoint) TcpAddress

func (e APIEndpoint) TcpAddress() 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