signutil

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAccountNumber uint64 = 0
View Source
const DefaultChainID = "signed-message-v1"
View Source
const DefaultSequence uint64 = 0
View Source
const ModuleName = "signutil"

Variables

View Source
var ModuleCdc = codec.New()

ModuleCdc instantiates a new codec for the domain module

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

func RegisterRestRoutes

func RegisterRestRoutes(ctx context.CLIContext, r *mux.Router)

func Verify

func Verify(tx auth.StdTx, chainID string, accountNumber, sequence uint64) error

Types

type AppModule

type AppModule struct {
	AppModuleBasic
}

- - FILL APP MODULE - -

func NewAppModule

func NewAppModule() AppModule

func (AppModule) BeginBlock

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (a AppModule) ExportGenesis(_ sdk.Context) json.RawMessage

func (AppModule) InitGenesis

func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) Name

func (AppModule) Name() string

func (AppModule) NewHandler

func (a AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (a AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) Route

func (AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

nolint - - - FILL APP MODULE BASIC -- // AppModuleBasic implements the AppModuleBasic interface of the cosmos-sdk

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) (err error)

type Error

type Error struct {
	Code   uint64 `json:"code"`
	Reason string `json:"error"`
}

type MsgSignText

type MsgSignText struct {
	Message string         `json:"message,omitempty"`
	Pairs   []Pair         `json:"pairs,omitempty"`
	Signer  sdk.AccAddress `json:"signer"`
}

func (MsgSignText) GetSignBytes

func (m MsgSignText) GetSignBytes() []byte

GetSignBytes implements sdk.Message

func (MsgSignText) GetSigners

func (m MsgSignText) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Message

func (MsgSignText) Route

func (m MsgSignText) Route() string

func (MsgSignText) Type

func (m MsgSignText) Type() string

func (MsgSignText) ValidateBasic

func (m MsgSignText) ValidateBasic() error

type Pair

type Pair struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Success

type Success struct {
	Message  string `json:"message"`
	Signer   string `json:"signer"`
	Verified bool   `json:"verified"`
	Signed   string `json:"signed"`
}

Jump to

Keyboard shortcuts

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