Documentation
¶
Index ¶
- func BroadcastTx(ctx context.Context, tx []byte) (*ctypes.ResultBroadcastTx, error)
- func DeleteAccountInfo(key string) error
- func DeleteKeyShare(key string) error
- func GetAccountInfo(key string) ([]string, error)
- func GetAllDIDs(ctx context.Context) ([]*identitytypes.DidDocument, error)
- func GetAllServices(ctx context.Context) ([]*identitytypes.Service, error)
- func GetDID(ctx context.Context, id string) (*identitytypes.ResolvedDidDocument, error)
- func GetKeyShare(key string) ([]byte, error)
- func GetService(ctx context.Context, origin string) (*identitytypes.Service, error)
- func InsertAccountInfo(accDid string, keyShareDids []string) error
- func InsertKSItem(did string, bz []byte) error
- func InsertKeyShare(i KVStoreItem) error
- func ListAccountInfo() (map[string][]string, error)
- func ListKeyShares(accDid string) (map[string][]byte, error)
- type BasicStoreItem
- type KVStoreItem
- type KeyShareParseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTx ¶
BroadcastTx broadcasts a transaction to the sonr chain
func DeleteAccountInfo ¶
DeleteAccountInfo deletes a record from the IPFS store for the given controller
func DeleteKeyShare ¶
DeleteKeyShare deletes a record from the IPFS store for the given controller
func GetAccountInfo ¶
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 ¶
func GetDID(ctx context.Context, id string) (*identitytypes.ResolvedDidDocument, error)
GetDID returns the DID document with the given id
func GetKeyShare ¶
GetKeyShare gets a record from the IPFS store for the given controller
func GetService ¶
GetService returns the service with the given id
func InsertAccountInfo ¶
InsertAccountInfo inserts a record into the IPFS store for the given controller
func InsertKSItem ¶
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 ¶
ListAccountInfo 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 KeyShareParseResult ¶
type KeyShareParseResult struct {
}