Documentation
¶
Index ¶
- func BroadcastSonrTx(c *gin.Context)
- func CreateAccount(c *gin.Context)
- func DeleteMailboxMessage(c *gin.Context)
- func GetAccount(c *gin.Context)
- func GetCredentialAssertionOptions(c *gin.Context)
- func GetCredentialCreationOptions(c *gin.Context)
- func GetMailboxMessages(c *gin.Context)
- func GetSonrTx(c *gin.Context)
- func ListAccounts(c *gin.Context)
- func OpenMailboxMessage(c *gin.Context)
- func PublishChannelMessage(c *gin.Context)
- func RegisterCredentialForClaims(c *gin.Context)
- func SendMailboxMessage(c *gin.Context)
- func SignWithAccount(c *gin.Context)
- func SubscribeChannel(c *gin.Context)
- func VerifyCredentialForAccount(c *gin.Context)
- func VerifyWithAccount(c *gin.Context)
- type BroadcastTxResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastSonrTx ¶
BroadcastSonrTx broadcasts a transaction on the Sonr blockchain network.
func CreateAccount ¶
CreateAccount creates a new account with a given coin type and name.
func DeleteMailboxMessage ¶
DeleteMailboxMessage deletes a message in a mailbox of a given Sonr account.
func GetAccount ¶
GetAccount returns an account's details given its DID.
func GetCredentialAssertionOptions ¶
GetCredentialAssertionOptions returns the credential assertion options to start account login.
func GetCredentialCreationOptions ¶
GetCredentialCreationOptions returns the credential creation options to start account registration.
func GetMailboxMessages ¶
GetMailboxMessages returns all messages in a mailbox of a given Sonr account. The response does not include the message content.
func ListAccounts ¶
ListAccounts returns a list of wallet accounts given a coin type.
func OpenMailboxMessage ¶
OpenMailboxMessage opens a message in a mailbox of a given Sonr account. Decrypts the message content and returns it.
func PublishChannelMessage ¶
PublishChannelMessage publishes a message to a channel of a given Service endpoint.
func RegisterCredentialForClaims ¶
RegisterCredentialForClaims registers a credential for a given Unclaimed Wallet.
func SendMailboxMessage ¶
SendMailboxMessage sends a message to a mailbox of a given Sonr account.
func SignWithAccount ¶
SignWithAccount signs a message with an account given its DID. Requires the JWT of their Keyshare.
func SubscribeChannel ¶
SubscribeChannel subscribes to a channel of a given Service endpoint.
func VerifyCredentialForAccount ¶
VerifyCredentialForAccount verifies a credential for a given account and returns the JWT Keyshare.
func VerifyWithAccount ¶
VerifyWithAccount verifies a signature with an account.
Types ¶
type BroadcastTxResponse ¶
type BroadcastTxResponse = txtypes.BroadcastTxResponse