Documentation ¶
Overview ¶
Package auth implements auth module following LIP-0041.
Index ¶
- Constants
- type API
- type AuthModuleConfig
- type DataSetParams
- func (e *DataSetParams) Decode(data []byte) error
- func (e *DataSetParams) DecodeFromReader(reader *codec.Reader) error
- func (e *DataSetParams) DecodeStrict(data []byte) error
- func (e *DataSetParams) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *DataSetParams) Encode() []byte
- func (e *DataSetParams) MustDecode(data []byte)
- type Endpoint
- type Module
- func (m *Module) API() *API
- func (m *Module) AfterTransactionsExecute(ctx *statemachine.AfterTransactionsExecuteContext) error
- func (m *Module) BeforeCommandExecute(ctx *statemachine.TransactionExecuteContext) error
- func (m *Module) Endpoint() statemachine.Endpoint
- func (m *Module) GetCommand(name string) (statemachine.Command, bool)
- func (m *Module) Init(cfg []byte) error
- func (m *Module) InitGenesisState(ctx *statemachine.GenesisBlockProcessingContext) error
- func (m *Module) Name() string
- func (m *Module) VerifyTransaction(ctx *statemachine.TransactionVerifyContext) statemachine.VerifyResult
- type Pair
- type SetData
- type UpdateValidators
- type UpdateValidatorsParams
- func (e *UpdateValidatorsParams) Decode(data []byte) error
- func (e *UpdateValidatorsParams) DecodeFromReader(reader *codec.Reader) error
- func (e *UpdateValidatorsParams) DecodeStrict(data []byte) error
- func (e *UpdateValidatorsParams) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *UpdateValidatorsParams) Encode() []byte
- func (e *UpdateValidatorsParams) MustDecode(data []byte)
- type UserAccount
- func (e *UserAccount) Decode(data []byte) error
- func (e *UserAccount) DecodeFromReader(reader *codec.Reader) error
- func (e *UserAccount) DecodeStrict(data []byte) error
- func (e *UserAccount) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *UserAccount) Encode() []byte
- func (e *UserAccount) MustDecode(data []byte)
- type ValidatorKey
- func (e *ValidatorKey) Decode(data []byte) error
- func (e *ValidatorKey) DecodeFromReader(reader *codec.Reader) error
- func (e *ValidatorKey) DecodeStrict(data []byte) error
- func (e *ValidatorKey) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *ValidatorKey) Encode() []byte
- func (e *ValidatorKey) MustDecode(data []byte)
- type ValidatorsData
- func (e *ValidatorsData) Decode(data []byte) error
- func (e *ValidatorsData) DecodeFromReader(reader *codec.Reader) error
- func (e *ValidatorsData) DecodeStrict(data []byte) error
- func (e *ValidatorsData) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *ValidatorsData) Encode() []byte
- func (e *ValidatorsData) MustDecode(data []byte)
Constants ¶
View Source
const (
MaxKeyCount = 64
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModuleConfig ¶
type AuthModuleConfig struct { }
type DataSetParams ¶
func (*DataSetParams) Decode ¶
func (e *DataSetParams) Decode(data []byte) error
func (*DataSetParams) DecodeFromReader ¶
func (e *DataSetParams) DecodeFromReader(reader *codec.Reader) error
func (*DataSetParams) DecodeStrict ¶
func (e *DataSetParams) DecodeStrict(data []byte) error
func (*DataSetParams) DecodeStrictFromReader ¶
func (e *DataSetParams) DecodeStrictFromReader(reader *codec.Reader) error
func (*DataSetParams) Encode ¶
func (e *DataSetParams) Encode() []byte
func (*DataSetParams) MustDecode ¶
func (e *DataSetParams) MustDecode(data []byte)
type Endpoint ¶
func (*Endpoint) Get ¶
func (e *Endpoint) Get() statemachine.EndpointHandlers
func (*Endpoint) HandleGetValidators ¶
func (e *Endpoint) HandleGetValidators(w rpc.EndpointResponseWriter, r *statemachine.EndpointRequest)
type Module ¶
func (*Module) AfterTransactionsExecute ¶
func (m *Module) AfterTransactionsExecute(ctx *statemachine.AfterTransactionsExecuteContext) error
func (*Module) BeforeCommandExecute ¶
func (m *Module) BeforeCommandExecute(ctx *statemachine.TransactionExecuteContext) error
func (*Module) Endpoint ¶
func (m *Module) Endpoint() statemachine.Endpoint
func (*Module) GetCommand ¶
func (m *Module) GetCommand(name string) (statemachine.Command, bool)
func (*Module) InitGenesisState ¶
func (m *Module) InitGenesisState(ctx *statemachine.GenesisBlockProcessingContext) error
func (*Module) VerifyTransaction ¶
func (m *Module) VerifyTransaction(ctx *statemachine.TransactionVerifyContext) statemachine.VerifyResult
type Pair ¶
func (*Pair) DecodeStrict ¶
func (*Pair) DecodeStrictFromReader ¶
func (*Pair) MustDecode ¶
type SetData ¶
func (*SetData) Execute ¶
func (a *SetData) Execute(ctx *statemachine.TransactionExecuteContext) error
func (*SetData) Verify ¶
func (a *SetData) Verify(ctx *statemachine.TransactionVerifyContext) error
type UpdateValidators ¶
func (*UpdateValidators) Execute ¶
func (a *UpdateValidators) Execute(ctx *statemachine.TransactionExecuteContext) error
func (*UpdateValidators) Name ¶
func (a *UpdateValidators) Name() string
func (*UpdateValidators) Verify ¶
func (a *UpdateValidators) Verify(ctx *statemachine.TransactionVerifyContext) error
type UpdateValidatorsParams ¶
type UpdateValidatorsParams struct {
Keys []*ValidatorKey `fieldNumber:"1"`
}
func (*UpdateValidatorsParams) Decode ¶
func (e *UpdateValidatorsParams) Decode(data []byte) error
func (*UpdateValidatorsParams) DecodeFromReader ¶
func (e *UpdateValidatorsParams) DecodeFromReader(reader *codec.Reader) error
func (*UpdateValidatorsParams) DecodeStrict ¶
func (e *UpdateValidatorsParams) DecodeStrict(data []byte) error
func (*UpdateValidatorsParams) DecodeStrictFromReader ¶
func (e *UpdateValidatorsParams) DecodeStrictFromReader(reader *codec.Reader) error
func (*UpdateValidatorsParams) Encode ¶
func (e *UpdateValidatorsParams) Encode() []byte
func (*UpdateValidatorsParams) MustDecode ¶
func (e *UpdateValidatorsParams) MustDecode(data []byte)
type UserAccount ¶
type UserAccount struct {
Nonce uint64 `fieldNumber:"1" json:"nonce,string"`
}
func (*UserAccount) Decode ¶
func (e *UserAccount) Decode(data []byte) error
func (*UserAccount) DecodeFromReader ¶
func (e *UserAccount) DecodeFromReader(reader *codec.Reader) error
func (*UserAccount) DecodeStrict ¶
func (e *UserAccount) DecodeStrict(data []byte) error
func (*UserAccount) DecodeStrictFromReader ¶
func (e *UserAccount) DecodeStrictFromReader(reader *codec.Reader) error
func (*UserAccount) Encode ¶
func (e *UserAccount) Encode() []byte
func (*UserAccount) MustDecode ¶
func (e *UserAccount) MustDecode(data []byte)
type ValidatorKey ¶
type ValidatorKey struct { Address codec.Lisk32 `fieldNumber:"1" json:"address"` GenerationKey codec.Hex `fieldNumber:"2" json:"generatorKey"` BLSKey codec.Hex `fieldNumber:"3" json:"blsKey"` BFTWeight uint64 `fieldNumber:"4" json:"bftWeight,string"` }
func (*ValidatorKey) Decode ¶
func (e *ValidatorKey) Decode(data []byte) error
func (*ValidatorKey) DecodeFromReader ¶
func (e *ValidatorKey) DecodeFromReader(reader *codec.Reader) error
func (*ValidatorKey) DecodeStrict ¶
func (e *ValidatorKey) DecodeStrict(data []byte) error
func (*ValidatorKey) DecodeStrictFromReader ¶
func (e *ValidatorKey) DecodeStrictFromReader(reader *codec.Reader) error
func (*ValidatorKey) Encode ¶
func (e *ValidatorKey) Encode() []byte
func (*ValidatorKey) MustDecode ¶
func (e *ValidatorKey) MustDecode(data []byte)
type ValidatorsData ¶
type ValidatorsData struct {
Keys []*ValidatorKey `fieldNumber:"1" json:"keys"`
}
func (*ValidatorsData) Decode ¶
func (e *ValidatorsData) Decode(data []byte) error
func (*ValidatorsData) DecodeFromReader ¶
func (e *ValidatorsData) DecodeFromReader(reader *codec.Reader) error
func (*ValidatorsData) DecodeStrict ¶
func (e *ValidatorsData) DecodeStrict(data []byte) error
func (*ValidatorsData) DecodeStrictFromReader ¶
func (e *ValidatorsData) DecodeStrictFromReader(reader *codec.Reader) error
func (*ValidatorsData) Encode ¶
func (e *ValidatorsData) Encode() []byte
func (*ValidatorsData) MustDecode ¶
func (e *ValidatorsData) MustDecode(data []byte)
Click to show internal directories.
Click to hide internal directories.