messages

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMessagesRoutes

func RegisterMessagesRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

type SignMessageRequest

type SignMessageRequest struct {
	Message    string `json:"message"`
	SingleHash *bool  `json:"singleHash"`
}

type SignMessageResponse

type SignMessageResponse struct {
	Signature string `json:"signature"`
}

type VerifyMessageRequest

type VerifyMessageRequest struct {
	Message   string `json:"message"`
	Signature string `json:"signature"`
}

type VerifyMessageResponse

type VerifyMessageResponse struct {
	Valid  bool   `json:"valid"`
	PubKey string `json:"pubKey"`
}

Jump to

Keyboard shortcuts

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