Documentation ¶
Index ¶
- type KeyGen
- type KeyGenRequest
- type KeySign
- func (s *KeySign) ExportAsKeyStore(password string) (*keys.EncryptedKeyJSON, error)
- func (s *KeySign) ExportAsMnemonic() (string, error)
- func (s *KeySign) ExportAsPrivateKey() (string, error)
- func (s *KeySign) GetAddr() ctypes.AccAddress
- func (s *KeySign) GetPrivKey() crypto.PrivKey
- func (s *KeySign) RemoteSign(msg []byte, poolPubKey string) ([]byte, []byte, error)
- func (s *KeySign) Sign(msg tx.StdSignMsg) ([]byte, error)
- func (s *KeySign) SignWithPool(msg tx.StdSignMsg, poolPubKey common.PubKey) ([]byte, error)
- func (s *KeySign) Start()
- func (s *KeySign) Stop()
- type KeysignError
- type MockMayachainKeyManager
- func (k *MockMayachainKeyManager) ExportAsKeyStore(password string) (*keys.EncryptedKeyJSON, error)
- func (k *MockMayachainKeyManager) ExportAsMnemonic() (string, error)
- func (k *MockMayachainKeyManager) ExportAsPrivateKey() (string, error)
- func (k *MockMayachainKeyManager) GetAddr() ctypes.AccAddress
- func (k *MockMayachainKeyManager) GetPrivKey() crypto.PrivKey
- func (k *MockMayachainKeyManager) RemoteSign(msg []byte, poolPubKey string) ([]byte, []byte, error)
- func (k *MockMayachainKeyManager) Sign(tx.StdSignMsg) ([]byte, error)
- func (k *MockMayachainKeyManager) SignWithPool(msg tx.StdSignMsg, poolPubKey common.PubKey) ([]byte, error)
- type ThorchainKeyManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyGen ¶
type KeyGen struct {
// contains filtered or unexported fields
}
KeyGen is
func NewTssKeyGen ¶
func NewTssKeyGen(keys *mayaclient.Keys, server *tss.TssServer, bridge mayaclient.MayachainBridge) (*KeyGen, error)
NewTssKeyGen create a new instance of TssKeyGen which will look after TSS key stuff
type KeyGenRequest ¶
type KeyGenRequest struct {
Keys []string `json:"keys"`
}
KeyGenRequest is the request send to tss_keygen
type KeySign ¶
type KeySign struct {
// contains filtered or unexported fields
}
KeySign is a proxy between signer and TSS
func NewKeySign ¶
func NewKeySign(server tssServer, bridge mayaclient.MayachainBridge) (*KeySign, error)
NewKeySign create a new instance of KeySign
func (*KeySign) ExportAsKeyStore ¶
func (s *KeySign) ExportAsKeyStore(password string) (*keys.EncryptedKeyJSON, error)
ExportAsKeyStore THORNode don't need this function for TSS, just keep it to fulfill KeyManager interface
func (*KeySign) ExportAsMnemonic ¶
ExportAsMnemonic THORNode don't need this function for TSS, just keep it to fulfill KeyManager interface
func (*KeySign) ExportAsPrivateKey ¶
ExportAsPrivateKey THORNode don't need this function for TSS, just keep it to fulfill KeyManager interface
func (*KeySign) GetAddr ¶
func (s *KeySign) GetAddr() ctypes.AccAddress
func (*KeySign) GetPrivKey ¶
GetPrivKey THORNode don't actually have any private key , but just return something
func (*KeySign) RemoteSign ¶
RemoteSign send the request to local task queue
func (*KeySign) SignWithPool ¶
type KeysignError ¶
KeysignError is a custom error create to include which party to blame
func NewKeysignError ¶
func NewKeysignError(blame types.Blame) KeysignError
NewKeysignError create a new instance of KeysignError
func (KeysignError) IsRound7 ¶ added in v1.104.0
func (k KeysignError) IsRound7() bool
type MockMayachainKeyManager ¶ added in v1.104.1
type MockMayachainKeyManager struct{}
MockThorchainKeymanager is to mock the TSS , so as we could test it
func (*MockMayachainKeyManager) ExportAsKeyStore ¶ added in v1.104.1
func (k *MockMayachainKeyManager) ExportAsKeyStore(password string) (*keys.EncryptedKeyJSON, error)
func (*MockMayachainKeyManager) ExportAsMnemonic ¶ added in v1.104.1
func (k *MockMayachainKeyManager) ExportAsMnemonic() (string, error)
func (*MockMayachainKeyManager) ExportAsPrivateKey ¶ added in v1.104.1
func (k *MockMayachainKeyManager) ExportAsPrivateKey() (string, error)
func (*MockMayachainKeyManager) GetAddr ¶ added in v1.104.1
func (k *MockMayachainKeyManager) GetAddr() ctypes.AccAddress
func (*MockMayachainKeyManager) GetPrivKey ¶ added in v1.104.1
func (k *MockMayachainKeyManager) GetPrivKey() crypto.PrivKey
func (*MockMayachainKeyManager) RemoteSign ¶ added in v1.104.1
func (*MockMayachainKeyManager) Sign ¶ added in v1.104.1
func (k *MockMayachainKeyManager) Sign(tx.StdSignMsg) ([]byte, error)
func (*MockMayachainKeyManager) SignWithPool ¶ added in v1.104.1
func (k *MockMayachainKeyManager) SignWithPool(msg tx.StdSignMsg, poolPubKey common.PubKey) ([]byte, error)
type ThorchainKeyManager ¶
type ThorchainKeyManager interface { keys.KeyManager SignWithPool(msg tx.StdSignMsg, poolPubKey common.PubKey) ([]byte, error) RemoteSign(msg []byte, poolPubKey string) ([]byte, []byte, error) }
ThorchainKeyManager it is a composite of binance chain keymanager