types

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECRecoverRequest

type ECRecoverRequest struct {
	Data      hexutil.Bytes `json:"data" validate:"required" example:"0xfeaeee..." swaggertype:"string"`
	Signature hexutil.Bytes `json:"signature" validate:"required" example:"0x6019a3c8..." swaggertype:"string"`
}

type VerifyKeySignatureRequest

type VerifyKeySignatureRequest struct {
	Data             []byte `json:"data" validate:"required" example:"bXkgc2lnbmVkIG1lc3NhZ2U=" swaggertype:"string"`
	Signature        []byte `` /* 156-byte string literal not displayed */
	Curve            string `json:"curve" validate:"required,isCurve" example:"secp256k1" enums:"babyjubjub,secp256k1" swaggertype:"string"`
	SigningAlgorithm string `json:"signingAlgorithm" validate:"required,isSigningAlgorithm" example:"ecdsa" enums:"ecdsa,eddsa"`
	PublicKey        []byte `json:"publicKey" validate:"required" example:"Cjix/fS3WdqKGKabagBNYwcClan5aImoFpnjSF0cqJs=" swaggertype:"string"`
}

type VerifyRequest

type VerifyRequest struct {
	Data      hexutil.Bytes  `json:"data" validate:"required" example:"0xfeaeee..." swaggertype:"string"`
	Signature hexutil.Bytes  `json:"signature" validate:"required" example:"0x6019a3c8..." swaggertype:"string"`
	Address   common.Address `json:"address" validate:"required" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18" swaggertype:"string"`
}

type VerifyTypedDataRequest

type VerifyTypedDataRequest struct {
	TypedData types.SignTypedDataRequest `json:"data" validate:"required"`
	Signature hexutil.Bytes              `json:"signature" validate:"required" example:"0x6019a3c8..." swaggertype:"string"`
	Address   common.Address             `json:"address" validate:"required" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18" swaggertype:"string"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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