cipher

package
v0.0.0-...-05cdca5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoService

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

CryptoService - crypto service interface

func NewCryptoService

func NewCryptoService(
	getPrivateKeyFunc keeper.GetPrivateKeyFunc,
) *CryptoService

NewCryptoService - constructor. Creates new crypto service

func (*CryptoService) Decrypt

func (s *CryptoService) Decrypt(bytes []byte) ([]byte, error)

Decrypt - decrypt data

func (*CryptoService) Encrypt

func (s *CryptoService) Encrypt(bytes []byte) ([]byte, error)

Encrypt - encrypt data

Jump to

Keyboard shortcuts

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