Documentation ¶
Index ¶
- func InitDB(dbPath string) (db *leveldb.DB, err error)
- type MnemonicBody
- type ShamirService
- func (ss *ShamirService) DecryptMnemonic(ciphered []byte, keyPhrase string) (mnemonic string, err error)
- func (ss *ShamirService) EncryptMnemonic(mnemonic string, keyPhrase string) (ciphered []byte, err error)
- func (ss *ShamirService) GetMnemonic() (mnemonic []byte, err error)
- func (ss *ShamirService) PutMnemonic(mnemonic []byte) (err error)
- func (ss *ShamirService) Run() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.