signature

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(r *mux.Router)

resgister REST routes

func SignHandler

func SignHandler(w http.ResponseWriter, r *http.Request)

get key REST handler

func VerifiyHandler

func VerifiyHandler(w http.ResponseWriter, r *http.Request)

Types

type Claim

type Claim struct {
	Msg       ClaimMsg         `json:"msg"`
	Signature crypto.Signature `json:"signature"`
}

type ClaimMsg

type ClaimMsg struct {
	PubKey  crypto.PubKey `json:"pubkey"`
	Expires int64         `json:"expires"`
	Nonce   string        `json:"nonce"`
}

func (ClaimMsg) Bytes

func (msg ClaimMsg) Bytes() []byte

type LoginBody

type LoginBody struct {
	Website  string `json:"webiste"`
	Name     string `json:"name"`
	Password string `json:"password"`
	Nonce    string `json:"nonce"`
}

LoginBody ...

type VerifyOutput

type VerifyOutput struct {
	Status  bool           `json:"status"`
	Address sdk.AccAddress `json:"address"`
}

Jump to

Keyboard shortcuts

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