registration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ChainID         int64    `json:"chainID"`
	HermesID        string   `json:"hermesID"`
	Stake           *big.Int `json:"stake"`
	Fee             *big.Int `json:"fee"`
	Beneficiary     string   `json:"beneficiary"`
	Signature       string   `json:"signature"`
	RegistryAddress string   `json:"registryAddress"`
}

Request represent a request to register

func (Request) GetFee

func (r Request) GetFee() *big.Int

GetFee returns the big int representation for the fee

func (Request) GetMessage

func (r Request) GetMessage() []byte

GetMessage forms the message payload given the registration request

func (Request) GetSignatureBytesRaw

func (r Request) GetSignatureBytesRaw() []byte

GetSignatureBytesRaw returns the unadulterated bytes of the signature

func (Request) GetStakeAmount added in v0.2.0

func (r Request) GetStakeAmount() *big.Int

GetStakeAmount returns a big int representation for the stake amount

func (Request) RecoverIdentity

func (r Request) RecoverIdentity() (common.Address, error)

RecoverIdentity recovers the identity from the given request

Jump to

Keyboard shortcuts

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