Documentation
¶
Index ¶
- func ConvertAuthenticatorFromMap(authenticatorMap map[string]string) (*crypto.WebauthnAuthenticator, error)
- func ConvertAuthenticatorToMap(authenticator *crypto.WebauthnAuthenticator) (map[string]string, error)
- func DecodeCredentialVerificationMethod(vm *types.VerificationMethod) (*crypto.WebauthnCredential, error)
- func DecodeTxResponseData(d string, v proto.Unmarshaler) error
- func DeleteAccountInfo(key string) error
- func DeleteKeyShare(key string) error
- func EncodeCredentialVerificationMethod(cred *crypto.WebauthnCredential, controller string) (*types.VerificationMethod, 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)
- func ParseCredentialDID(did string) (*crypto.WebauthnCredential, error)
- func SimulateTx(txRawBytes []byte) (*txtypes.SimulateResponse, error)
- type BasicStoreItem
- type BroadcastTxResponse
- type KVStoreItem
- type KeyShareParseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAuthenticatorFromMap ¶
func ConvertAuthenticatorFromMap(authenticatorMap map[string]string) (*crypto.WebauthnAuthenticator, error)
func ConvertAuthenticatorToMap ¶
func ConvertAuthenticatorToMap(authenticator *crypto.WebauthnAuthenticator) (map[string]string, error)
func DecodeCredentialVerificationMethod ¶
func DecodeCredentialVerificationMethod(vm *types.VerificationMethod) (*crypto.WebauthnCredential, error)
func DecodeTxResponseData ¶ added in v0.6.4
func DecodeTxResponseData(d string, v proto.Unmarshaler) error
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 EncodeCredentialVerificationMethod ¶
func EncodeCredentialVerificationMethod(cred *crypto.WebauthnCredential, controller string) (*types.VerificationMethod, error)
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
func ListKeyShares ¶
ListKeyShares lists all records in the IPFS store for the given controller
func ParseCredentialDID ¶
func ParseCredentialDID(did string) (*crypto.WebauthnCredential, error)
Parse a DID into a WebauthnCredential struct
func SimulateTx ¶ added in v0.6.4
func SimulateTx(txRawBytes []byte) (*txtypes.SimulateResponse, error)
SimulateTx simulates a transaction on the Sonr blockchain network
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 BroadcastTxResponse ¶ added in v0.6.4
type BroadcastTxResponse = txtypes.BroadcastTxResponse
func BroadcastTx ¶
func BroadcastTx(txRawBytes []byte) (*BroadcastTxResponse, error)
BroadcastTx broadcasts a transaction on the Sonr blockchain network
type KVStoreItem ¶
type KeyShareParseResult ¶
type KeyShareParseResult struct {
}
func ParseAccountDID ¶
func ParseAccountDID(name string) (*KeyShareParseResult, error)
ParseAccountDID parses an account DID into its components.
func ParseKeyShareDID ¶
func ParseKeyShareDID(name string) (*KeyShareParseResult, error)
ParseKeyShareDID parses a keyshare DID into its components.