Documentation
¶
Index ¶
- func CheckAliasAvailable(email string) (bool, error)
- func CheckAliasUnavailable(email string) (bool, error)
- func CreateOrganizationRecord(name string, origin string, admin string, ...) error
- func GetControllerAccount(address string) (*identitytypes.ControllerAccount, error)
- func GetDID(alias string) (*identitytypes.DIDDocument, error)
- func GetEmailRecordCreator(email string) (string, error)
- func GetServiceRecord(origin string) (*servicetypes.ServiceRecord, error)
- func IssueCredentialAssertionOptions(email string, record *servicetypes.ServiceRecord) (string, protocol.URLEncodedBase64, string, error)
- func IssueCredentialAttestationOptions(alias string, record *servicetypes.ServiceRecord) (string, protocol.URLEncodedBase64, error)
- func IssueEmailAssertionOptions(email string, ucwDid string) (string, error)
- func PublishControllerAccount(alias string, cred *servicetypes.WebauthnCredential, origin string) (*controller.SonrController, *types.TxResponse, error)
- func StoreAuthCookies(c *gin.Context, res *types.AuthenticationResult, origin string) gin.H
- func UseControllerAccount(token string) (*controller.SonrController, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAliasAvailable ¶
CheckAliasAvailable checks if an alias is already registered
func CheckAliasUnavailable ¶
CheckAliasUnavailable checks if an alias is already registered
func CreateOrganizationRecord ¶
func CreateOrganizationRecord(name string, origin string, admin string, controller *controller.SonrController) error
CreateOrganizationRecord creates a new organization record and publishes it to the blockchain
func GetControllerAccount ¶
func GetControllerAccount(address string) (*identitytypes.ControllerAccount, error)
GetControllerAccount returns the DIDDocument of a given DID or Alias
func GetDID ¶
func GetDID(alias string) (*identitytypes.DIDDocument, error)
GetDID returns the DIDDocument of a given DID or Alias
func GetEmailRecordCreator ¶
GetEmailRecordCreator returns the creator of a given email
func GetServiceRecord ¶
func GetServiceRecord(origin string) (*servicetypes.ServiceRecord, error)
GetServiceRecord returns the ServiceRecord of a given origin
func IssueCredentialAssertionOptions ¶
func IssueCredentialAssertionOptions(email string, record *servicetypes.ServiceRecord) (string, protocol.URLEncodedBase64, string, error)
IssueCredentialAssertionOptions takes a didDocument and serviceRecord in order to create a credential options.
func IssueCredentialAttestationOptions ¶
func IssueCredentialAttestationOptions(alias string, record *servicetypes.ServiceRecord) (string, protocol.URLEncodedBase64, error)
IssueCredentialAttestationOptions takes a ucwId alias, and random unclaimed address and returns a token with the credential options.
func IssueEmailAssertionOptions ¶
IssueEmailAssertionOptions takes a didDocument and serviceRecord in order to create a credential options.
func PublishControllerAccount ¶
func PublishControllerAccount(alias string, cred *servicetypes.WebauthnCredential, origin string) (*controller.SonrController, *types.TxResponse, error)
PublishControllerAccount creates a new controller account and publishes it to the blockchain
func StoreAuthCookies ¶
StoreAuthCookies function stores authentication cookies in the context.
func UseControllerAccount ¶
func UseControllerAccount(token string) (*controller.SonrController, error)
UseControllerAccount takes a jwt token and returns a controller account.
Types ¶
This section is empty.