handlers

package
v0.0.0-...-260f6c6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostEIP712

func PostEIP712(c echo.Context) error

func PostEIP712verify

func PostEIP712verify(c echo.Context) error

Types

type ReturnData

type ReturnData struct {
	HashToSign common.Hash `json:"hashToSign"`
}

type ReturnVerifyData

type ReturnVerifyData struct {
	Verify bool `json:"verify"`
}

type SignParams

type SignParams struct {
	Action            string `json:"action"`
	Address           string `json:"address"`
	ChainId           int64  `json:"chainid"`
	VerifyingContract string `json:"verifyingContract"`
	TokenId           string `json:"tokenId"`
	BuyPrice          string `json:"buyPrice"`
	Amount            string `json:"amount"`
	Deadline          string `json:"deadline"`
	TxHash            string `json:"txHash"`
}

type VerifyParams

type VerifyParams struct {
	StoredHash    string         `json:"storedHash"`
	Address       common.Address `json:"address"`
	UserSignature string         `json:"userSignature"`
}

*

  • @StoredHash will be used to retrive the publicKey of the user
  • @Address Fetch the previously stored challenge hash from your database
  • @UserSignature address of the OG signer to be verifyed *

Jump to

Keyboard shortcuts

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