handler

package
v0.7.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastSonrTx

func BroadcastSonrTx(c *gin.Context)

BroadcastSonrTx broadcasts a transaction on the Sonr blockchain network.

func CreateAccount

func CreateAccount(c *gin.Context)

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

func DeleteMailboxMessage

func DeleteMailboxMessage(c *gin.Context)

DeleteMailboxMessage deletes a message in a mailbox of a given Sonr account.

func GetAccount

func GetAccount(c *gin.Context)

GetAccount returns an account's details given its DID.

func GetCredentialAssertionOptions

func GetCredentialAssertionOptions(c *gin.Context)

GetCredentialAssertionOptions returns the credential assertion options to start account login.

func GetCredentialCreationOptions

func GetCredentialCreationOptions(c *gin.Context)

GetCredentialCreationOptions returns the credential creation options to start account registration.

func GetMailboxMessages

func GetMailboxMessages(c *gin.Context)

GetMailboxMessages returns all messages in a mailbox of a given Sonr account. The response does not include the message content.

func GetSonrTx

func GetSonrTx(c *gin.Context)

GetSonrTx returns a transaction on the Sonr blockchain network.

func ListAccounts

func ListAccounts(c *gin.Context)

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

func OpenMailboxMessage

func OpenMailboxMessage(c *gin.Context)

OpenMailboxMessage opens a message in a mailbox of a given Sonr account. Decrypts the message content and returns it.

func PublishChannelMessage

func PublishChannelMessage(c *gin.Context)

PublishChannelMessage publishes a message to a channel of a given Service endpoint.

func RegisterCredentialForClaims

func RegisterCredentialForClaims(c *gin.Context)

RegisterCredentialForClaims registers a credential for a given Unclaimed Wallet.

func SendMailboxMessage

func SendMailboxMessage(c *gin.Context)

SendMailboxMessage sends a message to a mailbox of a given Sonr account.

func SignWithAccount

func SignWithAccount(c *gin.Context)

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

func SubscribeChannel

func SubscribeChannel(c *gin.Context)

SubscribeChannel subscribes to a channel of a given Service endpoint.

func VerifyCredentialForAccount

func VerifyCredentialForAccount(c *gin.Context)

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

func VerifyWithAccount

func VerifyWithAccount(c *gin.Context)

VerifyWithAccount verifies a signature with an account.

Types

type BroadcastTxResponse

type BroadcastTxResponse = txtypes.BroadcastTxResponse

Jump to

Keyboard shortcuts

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