Documentation ¶
Index ¶
- func EncodePrepareInfo(exportedMultiSigInfo string) (string, error)
- func GetNodePrivateKey(encodedKey string) (tcrypto.PrivKey, error)
- type MockWalletAccessor
- func (m *MockWalletAccessor) CheckTransaction(req *wallet.RequestCheckTransaction) (*wallet.ResponseCheckTransaction, error)
- func (m *MockWalletAccessor) CheckTxProof(req *wallet.RequestCheckTxProof) (*wallet.ResponseCheckTxProof, error)
- func (m *MockWalletAccessor) CreateWallet(req *wallet.RequestCreateWallet) error
- func (m *MockWalletAccessor) ExchangeMultiSigKeys(req *wallet.RequestExchangeMultisigKeys) (*wallet.ResponseExchangeMultisig, error)
- func (m *MockWalletAccessor) ExportMultisigInfo() (*wallet.ResponseExportMultisigInfo, error)
- func (m *MockWalletAccessor) GetAddress(req *wallet.RequestGetAddress) (*wallet.ResponseGetAddress, error)
- func (m *MockWalletAccessor) GetBalance(req *wallet.RequestGetBalance) (*wallet.ResponseGetBalance, error)
- func (m *MockWalletAccessor) GetTxProof(req *wallet.RequestGetTxProof) (*wallet.ResponseGetTxProof, error)
- func (m *MockWalletAccessor) ImportMultisigInfo(req *wallet.RequestImportMultisigInfo) (*wallet.ResponseImportMultisigInfo, error)
- func (m *MockWalletAccessor) IsMultisig() (*wallet.ResponseIsMultisig, error)
- func (m *MockWalletAccessor) MakeMultisig(req *wallet.RequestMakeMultisig) (*wallet.ResponseMakeMultisig, error)
- func (m *MockWalletAccessor) OpenWallet(req *wallet.RequestOpenWallet) error
- func (m *MockWalletAccessor) PrepareMultisig() (*wallet.ResponsePrepareMultisig, error)
- func (m *MockWalletAccessor) Refresh(req *wallet.RequestRefresh) (*wallet.ResponseRefresh, error)
- func (m *MockWalletAccessor) SignMultisig(req *wallet.RequestSignMultisig) (*wallet.ResponseSignMultisig, error)
- func (m *MockWalletAccessor) SubmitMultisig(req *wallet.RequestSubmitMultisig) (*wallet.ResponseSubmitMultisig, error)
- func (m *MockWalletAccessor) Transfer(req *wallet.RequestTransfer) (*wallet.ResponseTransfer, error)
- type MoneroPrepareMsg
- type MoneroSharesStore
- type WalletAccessor
- type WalletAccessorCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePrepareInfo ¶
EncodePrepareInfo json marshal the given exported mutisiginfo and then base64 encode it
Types ¶
type MockWalletAccessor ¶
func (*MockWalletAccessor) CheckTransaction ¶
func (m *MockWalletAccessor) CheckTransaction(req *wallet.RequestCheckTransaction) (*wallet.ResponseCheckTransaction, error)
func (*MockWalletAccessor) CheckTxProof ¶
func (m *MockWalletAccessor) CheckTxProof(req *wallet.RequestCheckTxProof) (*wallet.ResponseCheckTxProof, error)
func (*MockWalletAccessor) CreateWallet ¶
func (m *MockWalletAccessor) CreateWallet(req *wallet.RequestCreateWallet) error
func (*MockWalletAccessor) ExchangeMultiSigKeys ¶
func (m *MockWalletAccessor) ExchangeMultiSigKeys(req *wallet.RequestExchangeMultisigKeys) (*wallet.ResponseExchangeMultisig, error)
func (*MockWalletAccessor) ExportMultisigInfo ¶
func (m *MockWalletAccessor) ExportMultisigInfo() (*wallet.ResponseExportMultisigInfo, error)
func (*MockWalletAccessor) GetAddress ¶
func (m *MockWalletAccessor) GetAddress(req *wallet.RequestGetAddress) (*wallet.ResponseGetAddress, error)
func (*MockWalletAccessor) GetBalance ¶
func (m *MockWalletAccessor) GetBalance(req *wallet.RequestGetBalance) (*wallet.ResponseGetBalance, error)
func (*MockWalletAccessor) GetTxProof ¶
func (m *MockWalletAccessor) GetTxProof(req *wallet.RequestGetTxProof) (*wallet.ResponseGetTxProof, error)
func (*MockWalletAccessor) ImportMultisigInfo ¶
func (m *MockWalletAccessor) ImportMultisigInfo(req *wallet.RequestImportMultisigInfo) (*wallet.ResponseImportMultisigInfo, error)
func (*MockWalletAccessor) IsMultisig ¶
func (m *MockWalletAccessor) IsMultisig() (*wallet.ResponseIsMultisig, error)
func (*MockWalletAccessor) MakeMultisig ¶
func (m *MockWalletAccessor) MakeMultisig(req *wallet.RequestMakeMultisig) (*wallet.ResponseMakeMultisig, error)
func (*MockWalletAccessor) OpenWallet ¶
func (m *MockWalletAccessor) OpenWallet(req *wallet.RequestOpenWallet) error
func (*MockWalletAccessor) PrepareMultisig ¶
func (m *MockWalletAccessor) PrepareMultisig() (*wallet.ResponsePrepareMultisig, error)
func (*MockWalletAccessor) Refresh ¶
func (m *MockWalletAccessor) Refresh(req *wallet.RequestRefresh) (*wallet.ResponseRefresh, error)
func (*MockWalletAccessor) SignMultisig ¶
func (m *MockWalletAccessor) SignMultisig(req *wallet.RequestSignMultisig) (*wallet.ResponseSignMultisig, error)
func (*MockWalletAccessor) SubmitMultisig ¶
func (m *MockWalletAccessor) SubmitMultisig(req *wallet.RequestSubmitMultisig) (*wallet.ResponseSubmitMultisig, error)
func (*MockWalletAccessor) Transfer ¶
func (m *MockWalletAccessor) Transfer(req *wallet.RequestTransfer) (*wallet.ResponseTransfer, error)
type MoneroPrepareMsg ¶
type MoneroPrepareMsg struct {
ExchangeInfo string `json:"exchange_info"`
}
func DecodePrepareInfo ¶
func DecodePrepareInfo(in string) (MoneroPrepareMsg, error)
DecodePrepareInfo reverse of EncodePrepareInfo , base64 decode the input and then unmarshal it to MoneroPrepareMsg
type MoneroSharesStore ¶
type MoneroSharesStore struct {
// contains filtered or unexported fields
}
func GenMoneroShareStore ¶
func GenMoneroShareStore() *MoneroSharesStore
func (*MoneroSharesStore) StoreAndCheck ¶
func (ms *MoneroSharesStore) StoreAndCheck(round int, share *common.MoneroShare, checkLength int) ([]*common.MoneroShare, bool)
type WalletAccessor ¶
type WalletAccessor interface { OpenWallet(*wallet.RequestOpenWallet) error IsMultisig() (*wallet.ResponseIsMultisig, error) PrepareMultisig() (*wallet.ResponsePrepareMultisig, error) MakeMultisig(*wallet.RequestMakeMultisig) (*wallet.ResponseMakeMultisig, error) ExportMultisigInfo() (*wallet.ResponseExportMultisigInfo, error) ImportMultisigInfo(*wallet.RequestImportMultisigInfo) (*wallet.ResponseImportMultisigInfo, error) SubmitMultisig(*wallet.RequestSubmitMultisig) (*wallet.ResponseSubmitMultisig, error) GetAddress(*wallet.RequestGetAddress) (*wallet.ResponseGetAddress, error) GetTxProof(*wallet.RequestGetTxProof) (*wallet.ResponseGetTxProof, error) CheckTxProof(*wallet.RequestCheckTxProof) (*wallet.ResponseCheckTxProof, error) Refresh(*wallet.RequestRefresh) (*wallet.ResponseRefresh, error) CreateWallet(*wallet.RequestCreateWallet) error GetBalance(*wallet.RequestGetBalance) (*wallet.ResponseGetBalance, error) Transfer(*wallet.RequestTransfer) (*wallet.ResponseTransfer, error) CheckTransaction(req *wallet.RequestCheckTransaction) (*wallet.ResponseCheckTransaction, error) SignMultisig(req *wallet.RequestSignMultisig) (*wallet.ResponseSignMultisig, error) ExchangeMultiSigKeys(*wallet.RequestExchangeMultisigKeys) (*wallet.ResponseExchangeMultisig, error) }
WalletAccessor contains all the methods monero tss need to use to finish keygen and keysign
func DefaultWalletAccessorCreator ¶
func DefaultWalletAccessorCreator(rpc string) WalletAccessor
DefaultWalletAccessorCreator default method to create a wallet client
type WalletAccessorCreator ¶
type WalletAccessorCreator func(rpc string) WalletAccessor
WalletAccessorCreator function to create a WalletAccessor
Click to show internal directories.
Click to hide internal directories.