Documentation
¶
Index ¶
- func CreateAccount(c *gin.Context)
- func CurrentUser(c *gin.Context)
- func ExportWallet(c *gin.Context)
- func GetAccount(c *gin.Context)
- func GetBlockHeight(c *gin.Context)
- func GetCredentialAssertionParams(c *gin.Context)
- func GetCredentialAttestationParams(c *gin.Context)
- func GetEmailAssertionParams(c *gin.Context)
- func GetHealth(c *gin.Context)
- func GetValidatorSet(c *gin.Context)
- func ListAccounts(c *gin.Context)
- func RegisterControllerIdentity(c *gin.Context)
- func RegisterEscrowIdentity(c *gin.Context)
- func SignInWithCredential(c *gin.Context)
- func SignInWithEmail(c *gin.Context)
- func SignWithAccount(c *gin.Context)
- func VerifyWithAccount(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
CreateAccount creates a new account with a given coin type and name.
func CurrentUser ¶ added in v0.7.1
CurrentUser returns the current user's details.
func ExportWallet ¶ added in v0.7.1
ExportWallet returns the encoded Sonr Wallet structure with an encrypted keyshare, which can be opened with the user's password, within Sonr Clients.
func GetAccount ¶
GetAccount returns an account's details given its DID.
func GetBlockHeight ¶ added in v0.7.1
func GetCredentialAssertionParams ¶ added in v0.7.1
GetCredentialAssertionParams returns the credential assertion options to start account login.
func GetCredentialAttestationParams ¶ added in v0.7.1
GetCredentialAttestationParams returns the credential creation options to start account registration.
func GetEmailAssertionParams ¶ added in v0.7.1
GetEmailAssertionParams returns a JWT for the email controller. After it is confirmed, the user will claim one of their unclaimed Keyshares.
func GetValidatorSet ¶ added in v0.7.1
func ListAccounts ¶
ListAccounts returns a list of wallet accounts given a coin type.
func RegisterControllerIdentity ¶ added in v0.7.1
RegisterControllerIdentity registers a credential for a given Unclaimed Wallet.
func RegisterEscrowIdentity ¶ added in v0.7.1
RegisterEscrowIdentity returns the credential assertion options to start account login.
func SignInWithCredential ¶ added in v0.7.1
SignInWithCredential verifies a credential for a given account and returns the JWT Keyshare.
func SignInWithEmail ¶ added in v0.7.1
SignInWithEmail registers a DIDDocument for a given email authorized jwt.
func SignWithAccount ¶
SignWithAccount signs a message with an account given its DID. Requires the JWT of their Keyshare.
func VerifyWithAccount ¶
VerifyWithAccount verifies a signature with an account.
Types ¶
This section is empty.