monero_multi_sig

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePrepareInfo

func EncodePrepareInfo(exportedMultiSigInfo string) (string, error)

EncodePrepareInfo json marshal the given exported mutisiginfo and then base64 encode it

func GetNodePrivateKey

func GetNodePrivateKey(encodedKey string) (tcrypto.PrivKey, error)

GetNodePrivateKey parse encode key to an instance of PrivKey

Types

type MockWalletAccessor

type MockWalletAccessor struct {
	mock.Mock
}

func (*MockWalletAccessor) CheckTransaction

func (*MockWalletAccessor) CheckTxProof

func (*MockWalletAccessor) CreateWallet

func (m *MockWalletAccessor) CreateWallet(req *wallet.RequestCreateWallet) error

func (*MockWalletAccessor) ExchangeMultiSigKeys

func (*MockWalletAccessor) ExportMultisigInfo

func (m *MockWalletAccessor) ExportMultisigInfo() (*wallet.ResponseExportMultisigInfo, error)

func (*MockWalletAccessor) GetAddress

func (*MockWalletAccessor) GetBalance

func (*MockWalletAccessor) GetTxProof

func (*MockWalletAccessor) ImportMultisigInfo

func (*MockWalletAccessor) IsMultisig

func (m *MockWalletAccessor) IsMultisig() (*wallet.ResponseIsMultisig, error)

func (*MockWalletAccessor) MakeMultisig

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 (*MockWalletAccessor) SignMultisig

func (*MockWalletAccessor) SubmitMultisig

func (*MockWalletAccessor) Transfer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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