service

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(dbPath string) (db *leveldb.DB, err error)

Types

type MnemonicBody

type MnemonicBody struct {
	Mnemonic string `binding:"required" json:"mnemonic"`
}

type ShamirService

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

func NewShamirService

func NewShamirService(router *gin.Engine, db *leveldb.DB, logger log.AppLogger) *ShamirService

func (*ShamirService) DecryptMnemonic

func (ss *ShamirService) DecryptMnemonic(ciphered []byte, keyPhrase string) (mnemonic string, err error)

func (*ShamirService) EncryptMnemonic

func (ss *ShamirService) EncryptMnemonic(mnemonic string, keyPhrase string) (ciphered []byte, err error)

func (*ShamirService) GetMnemonic

func (ss *ShamirService) GetMnemonic() (mnemonic []byte, err error)

func (*ShamirService) PutMnemonic

func (ss *ShamirService) PutMnemonic(mnemonic []byte) (err error)

func (*ShamirService) Run

func (ss *ShamirService) Run() (err error)

Jump to

Keyboard shortcuts

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