handler

package
v0.7.3-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccount

func CreateAccount(c *gin.Context)

CreateAccount creates a new account with a given coin type and name.

func CurrentUser added in v0.7.1

func CurrentUser(c *gin.Context)

CurrentUser returns the current user's details.

func ExportWallet added in v0.7.1

func ExportWallet(c *gin.Context)

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

func GetAccount(c *gin.Context)

GetAccount returns an account's details given its DID.

func GetBlockHeight added in v0.7.1

func GetBlockHeight(c *gin.Context)

func GetCredentialAssertionParams added in v0.7.1

func GetCredentialAssertionParams(c *gin.Context)

GetCredentialAssertionParams returns the credential assertion options to start account login.

func GetCredentialAttestationParams added in v0.7.1

func GetCredentialAttestationParams(c *gin.Context)

GetCredentialAttestationParams returns the credential creation options to start account registration.

func GetEmailAssertionParams added in v0.7.1

func GetEmailAssertionParams(c *gin.Context)

GetEmailAssertionParams returns a JWT for the email controller. After it is confirmed, the user will claim one of their unclaimed Keyshares.

func GetHealth added in v0.7.1

func GetHealth(c *gin.Context)

func GetValidatorSet added in v0.7.1

func GetValidatorSet(c *gin.Context)

func ListAccounts

func ListAccounts(c *gin.Context)

ListAccounts returns a list of wallet accounts given a coin type.

func RegisterControllerIdentity added in v0.7.1

func RegisterControllerIdentity(c *gin.Context)

RegisterControllerIdentity registers a credential for a given Unclaimed Wallet.

func RegisterEscrowIdentity added in v0.7.1

func RegisterEscrowIdentity(c *gin.Context)

RegisterEscrowIdentity returns the credential assertion options to start account login.

func SignInWithCredential added in v0.7.1

func SignInWithCredential(c *gin.Context)

SignInWithCredential verifies a credential for a given account and returns the JWT Keyshare.

func SignInWithEmail added in v0.7.1

func SignInWithEmail(c *gin.Context)

SignInWithEmail registers a DIDDocument for a given email authorized jwt.

func SignWithAccount

func SignWithAccount(c *gin.Context)

SignWithAccount signs a message with an account given its DID. Requires the JWT of their Keyshare.

func VerifyWithAccount

func VerifyWithAccount(c *gin.Context)

VerifyWithAccount verifies a signature with an account.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL