secret

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountPrefix   = "rarimo"
	PartyTSSDataENV = "PARTY_TSS_DATA_PATH"
	PreParamsENV    = "LOCAL_PRE_PARAMS_PATH"
)

Variables

View Source
var (
	ErrUninitializedPrivateKey = goerr.New("private key or TSS data should be initialized")
	ErrNoTssData               = goerr.New("tss data is empty")
)
View Source
var ErrNoTssDataPath = goerr.New("tss data path is empty")

Functions

This section is empty.

Types

type Storage

type Storage interface {
	GetTssSecret() *TssSecret
	SetTssSecret(secret *TssSecret) error
}

Storage is responsible for managing TSS secret data and Rarimo core account secret data

type TssSecret

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

func (*TssSecret) AccountAddress

func (t *TssSecret) AccountAddress() string

func (*TssSecret) AccountPubKey

func (t *TssSecret) AccountPubKey() cryptotypes.PubKey

func (*TssSecret) GetKeygenParty

func (t *TssSecret) GetKeygenParty(params *tss.Parameters, out chan<- tss.Message, end chan<- *tsskeygen.LocalPartySaveData) tss.Party

func (*TssSecret) GetSignParty

func (t *TssSecret) GetSignParty(msg *big.Int, params *tss.Parameters, out chan<- tss.Message, end chan<- *common.SignatureData) tss.Party

func (*TssSecret) GlobalPubKey

func (t *TssSecret) GlobalPubKey() string

func (*TssSecret) NewWithData

func (t *TssSecret) NewWithData(data *tsskeygen.LocalPartySaveData) *TssSecret

func (*TssSecret) Sign

func (t *TssSecret) Sign(request *types.MsgSubmitRequest) error

func (*TssSecret) SignTransaction

func (t *TssSecret) SignTransaction(txConfig client.TxConfig, data xauthsigning.SignerData, builder client.TxBuilder, account *authtypes.BaseAccount) (signing.SignatureV2, error)

func (*TssSecret) TLS

func (t *TssSecret) TLS() bool

func (*TssSecret) TssPubKey

func (t *TssSecret) TssPubKey() string

type VaultStorage

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

func NewVaultStorage

func NewVaultStorage(cfg config.Config) *VaultStorage

func (*VaultStorage) GetTssSecret

func (v *VaultStorage) GetTssSecret() *TssSecret

func (*VaultStorage) SetTssSecret

func (v *VaultStorage) SetTssSecret(secret *TssSecret) error

Jump to

Keyboard shortcuts

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