Documentation ¶
Index ¶
- Constants
- Variables
- type Storage
- type TssSecret
- func (t *TssSecret) AccountAddress() string
- func (t *TssSecret) AccountPubKey() cryptotypes.PubKey
- func (t *TssSecret) GetKeygenParty(params *tss.Parameters, out chan<- tss.Message, ...) tss.Party
- func (t *TssSecret) GetSignParty(msg *big.Int, params *tss.Parameters, out chan<- tss.Message, ...) tss.Party
- func (t *TssSecret) GlobalPubKey() string
- func (t *TssSecret) NewWithData(data *tsskeygen.LocalPartySaveData) *TssSecret
- func (t *TssSecret) Sign(request *types.MsgSubmitRequest) error
- func (t *TssSecret) SignTransaction(txConfig client.TxConfig, data xauthsigning.SignerData, ...) (signing.SignatureV2, error)
- func (t *TssSecret) TLS() bool
- func (t *TssSecret) TssPubKey() string
- type VaultStorage
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 ¶
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 NewTssSecret ¶
func NewTssSecret(prv *ecdsa.PrivateKey, account cryptotypes.PrivKey, data *tsskeygen.LocalPartySaveData, params *tsskeygen.LocalPreParams, tls bool) *TssSecret
func (*TssSecret) AccountAddress ¶
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 (*TssSecret) GlobalPubKey ¶
func (*TssSecret) NewWithData ¶
func (t *TssSecret) NewWithData(data *tsskeygen.LocalPartySaveData) *TssSecret
func (*TssSecret) SignTransaction ¶
func (t *TssSecret) SignTransaction(txConfig client.TxConfig, data xauthsigning.SignerData, builder client.TxBuilder, account *authtypes.BaseAccount) (signing.SignatureV2, error)
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
Click to show internal directories.
Click to hide internal directories.