security

package
v0.0.0-...-4fc266b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_FORMAT_HEX    = "hex"
	KEY_FORMAT_JSON   = "json"
	KEY_FORMAT_BASE58 = "base58"

	SIGNATURE_TYPE_SHA256 = "SHA256"
	SIGNATURE_TYPE_RIPEMD = "RIPEMD"
	SIGNATURE_TYPE_SHA512 = "SHA512"
)

Variables

View Source
var (
	ErrConfigStorageEmpty = errors.New("config storage is empty")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug         bool   `json:"debug"`
	KeyFormat     string `json:"defaultKeyFormat"`
	SignatureType string `json:"signatureType"`
	// contains filtered or unexported fields
}

func (*Config) Load

func (c *Config) Load() (err error)

func (*Config) Save

func (c *Config) Save() (err error)

type Manager

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

func NewManager

func NewManager(opts ...Option) *Manager

func (*Manager) Init

func (m *Manager) Init() (err error)

func (*Manager) Set

func (m *Manager) Set(opts ...Option)

func (*Manager) SignRequest

func (m *Manager) SignRequest(apiKey string, method string, params json.RawMessage) (sign []byte, err error)

type Option

type Option func(*Manager)

func WithStorageManager

func WithStorageManager(storageManager *storage.ModuleManager) Option

Jump to

Keyboard shortcuts

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