auth

package
v0.0.0-...-d04bc5a Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(cfg *config.Config) (*Auth, error)

func NewPemAuth

func NewPemAuth(pemData []byte) (*Auth, error)

func NewPrivAuth

func NewPrivAuth(priv any) (*Auth, error)

func (*Auth) CheckSign

func (auth *Auth) CheckSign(msg proto.Message, pubKey string) (err error)

func (*Auth) GetPubKey

func (auth *Auth) GetPubKey() (string, error)

func (*Auth) SignMessage

func (auth *Auth) SignMessage(msg proto.Message) (err error)

Jump to

Keyboard shortcuts

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