messages

package
v0.16.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 9 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 {
	NodeId     int    `json:"nodeId"`
	Message    string `json:"message"`
	SingleHash *bool  `json:"singleHash"`
}

type SignMessageResponse

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

type VerifyMessageRequest

type VerifyMessageRequest struct {
	NodeId    int    `json:"nodeId"`
	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