Documentation ¶
Index ¶
- type CSA
- func (_m *CSA) Add(key csakey.KeyV2) error
- func (_m *CSA) Create() (csakey.KeyV2, error)
- func (_m *CSA) Delete(id string) (csakey.KeyV2, error)
- func (_m *CSA) EnsureKey() error
- func (_m *CSA) Export(id string, password string) ([]byte, error)
- func (_m *CSA) Get(id string) (csakey.KeyV2, error)
- func (_m *CSA) GetAll() ([]csakey.KeyV2, error)
- func (_m *CSA) GetV1KeysAsV2() ([]csakey.KeyV2, error)
- func (_m *CSA) Import(keyJSON []byte, password string) (csakey.KeyV2, error)
- type Cosmos
- func (_m *Cosmos) Add(key cosmoskey.Key) error
- func (_m *Cosmos) Create() (cosmoskey.Key, error)
- func (_m *Cosmos) Delete(id string) (cosmoskey.Key, error)
- func (_m *Cosmos) EnsureKey() error
- func (_m *Cosmos) Export(id string, password string) ([]byte, error)
- func (_m *Cosmos) Get(id string) (cosmoskey.Key, error)
- func (_m *Cosmos) GetAll() ([]cosmoskey.Key, error)
- func (_m *Cosmos) Import(keyJSON []byte, password string) (cosmoskey.Key, error)
- type DKGEncrypt
- func (_m *DKGEncrypt) Add(key dkgencryptkey.Key) error
- func (_m *DKGEncrypt) Create() (dkgencryptkey.Key, error)
- func (_m *DKGEncrypt) Delete(id string) (dkgencryptkey.Key, error)
- func (_m *DKGEncrypt) EnsureKey() error
- func (_m *DKGEncrypt) Export(id string, password string) ([]byte, error)
- func (_m *DKGEncrypt) Get(id string) (dkgencryptkey.Key, error)
- func (_m *DKGEncrypt) GetAll() ([]dkgencryptkey.Key, error)
- func (_m *DKGEncrypt) Import(keyJSON []byte, password string) (dkgencryptkey.Key, error)
- type DKGSign
- func (_m *DKGSign) Add(key dkgsignkey.Key) error
- func (_m *DKGSign) Create() (dkgsignkey.Key, error)
- func (_m *DKGSign) Delete(id string) (dkgsignkey.Key, error)
- func (_m *DKGSign) EnsureKey() error
- func (_m *DKGSign) Export(id string, password string) ([]byte, error)
- func (_m *DKGSign) Get(id string) (dkgsignkey.Key, error)
- func (_m *DKGSign) GetAll() ([]dkgsignkey.Key, error)
- func (_m *DKGSign) Import(keyJSON []byte, password string) (dkgsignkey.Key, error)
- type Eth
- func (_m *Eth) CheckEnabled(address common.Address, chainID *big.Int) error
- func (_m *Eth) Create(chainIDs ...*big.Int) (ethkey.KeyV2, error)
- func (_m *Eth) Delete(id string) (ethkey.KeyV2, error)
- func (_m *Eth) Disable(address common.Address, chainID *big.Int, qopts ...pg.QOpt) error
- func (_m *Eth) Enable(address common.Address, chainID *big.Int, qopts ...pg.QOpt) error
- func (_m *Eth) EnabledKeysForChain(chainID *big.Int) ([]ethkey.KeyV2, error)
- func (_m *Eth) EnsureKeys(chainIDs ...*big.Int) error
- func (_m *Eth) Export(id string, password string) ([]byte, error)
- func (_m *Eth) Get(id string) (ethkey.KeyV2, error)
- func (_m *Eth) GetAll() ([]ethkey.KeyV2, error)
- func (_m *Eth) GetNextNonce(address common.Address, chainID *big.Int, qopts ...pg.QOpt) (int64, error)
- func (_m *Eth) GetRoundRobinAddress(chainID *big.Int, addresses ...common.Address) (common.Address, error)
- func (_m *Eth) GetState(id string, chainID *big.Int) (ethkey.State, error)
- func (_m *Eth) GetStatesForChain(chainID *big.Int) ([]ethkey.State, error)
- func (_m *Eth) GetStatesForKeys(_a0 []ethkey.KeyV2) ([]ethkey.State, error)
- func (_m *Eth) Import(keyJSON []byte, password string, chainIDs ...*big.Int) (ethkey.KeyV2, error)
- func (_m *Eth) IncrementNextNonce(address common.Address, chainID *big.Int, currentNonce int64, qopts ...pg.QOpt) error
- func (_m *Eth) Reset(address common.Address, chainID *big.Int, nonce int64, qopts ...pg.QOpt) error
- func (_m *Eth) SignTx(fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (_m *Eth) SubscribeToKeyChanges() (chan struct{}, func())
- func (_m *Eth) XXXTestingOnlyAdd(key ethkey.KeyV2)
- func (_m *Eth) XXXTestingOnlySetState(_a0 ethkey.State)
- type Master
- func (_m *Master) CSA() keystore.CSA
- func (_m *Master) Cosmos() keystore.Cosmos
- func (_m *Master) DKGEncrypt() keystore.DKGEncrypt
- func (_m *Master) DKGSign() keystore.DKGSign
- func (_m *Master) Eth() keystore.Eth
- func (_m *Master) IsEmpty() (bool, error)
- func (_m *Master) Migrate(vrfPassword string, f keystore.DefaultEVMChainIDFunc) error
- func (_m *Master) OCR() keystore.OCR
- func (_m *Master) OCR2() keystore.OCR2
- func (_m *Master) P2P() keystore.P2P
- func (_m *Master) Solana() keystore.Solana
- func (_m *Master) StarkNet() keystore.StarkNet
- func (_m *Master) Unlock(password string) error
- func (_m *Master) VRF() keystore.VRF
- type OCR
- func (_m *OCR) Add(key ocrkey.KeyV2) error
- func (_m *OCR) Create() (ocrkey.KeyV2, error)
- func (_m *OCR) Delete(id string) (ocrkey.KeyV2, error)
- func (_m *OCR) EnsureKey() error
- func (_m *OCR) Export(id string, password string) ([]byte, error)
- func (_m *OCR) Get(id string) (ocrkey.KeyV2, error)
- func (_m *OCR) GetAll() ([]ocrkey.KeyV2, error)
- func (_m *OCR) GetV1KeysAsV2() ([]ocrkey.KeyV2, error)
- func (_m *OCR) Import(keyJSON []byte, password string) (ocrkey.KeyV2, error)
- type OCR2
- func (_m *OCR2) Add(key ocr2key.KeyBundle) error
- func (_m *OCR2) Create(_a0 chaintype.ChainType) (ocr2key.KeyBundle, error)
- func (_m *OCR2) Delete(id string) error
- func (_m *OCR2) EnsureKeys() error
- func (_m *OCR2) Export(id string, password string) ([]byte, error)
- func (_m *OCR2) Get(id string) (ocr2key.KeyBundle, error)
- func (_m *OCR2) GetAll() ([]ocr2key.KeyBundle, error)
- func (_m *OCR2) GetAllOfType(_a0 chaintype.ChainType) ([]ocr2key.KeyBundle, error)
- func (_m *OCR2) Import(keyJSON []byte, password string) (ocr2key.KeyBundle, error)
- type P2P
- func (_m *P2P) Add(key p2pkey.KeyV2) error
- func (_m *P2P) Create() (p2pkey.KeyV2, error)
- func (_m *P2P) Delete(id p2pkey.PeerID) (p2pkey.KeyV2, error)
- func (_m *P2P) EnsureKey() error
- func (_m *P2P) Export(id p2pkey.PeerID, password string) ([]byte, error)
- func (_m *P2P) Get(id p2pkey.PeerID) (p2pkey.KeyV2, error)
- func (_m *P2P) GetAll() ([]p2pkey.KeyV2, error)
- func (_m *P2P) GetOrFirst(id p2pkey.PeerID) (p2pkey.KeyV2, error)
- func (_m *P2P) GetV1KeysAsV2() ([]p2pkey.KeyV2, error)
- func (_m *P2P) Import(keyJSON []byte, password string) (p2pkey.KeyV2, error)
- type Solana
- func (_m *Solana) Add(key solkey.Key) error
- func (_m *Solana) Create() (solkey.Key, error)
- func (_m *Solana) Delete(id string) (solkey.Key, error)
- func (_m *Solana) EnsureKey() error
- func (_m *Solana) Export(id string, password string) ([]byte, error)
- func (_m *Solana) Get(id string) (solkey.Key, error)
- func (_m *Solana) GetAll() ([]solkey.Key, error)
- func (_m *Solana) Import(keyJSON []byte, password string) (solkey.Key, error)
- func (_m *Solana) Sign(ctx context.Context, id string, msg []byte) ([]byte, error)
- type StarkNet
- func (_m *StarkNet) Add(key keys.Key) error
- func (_m *StarkNet) Create() (keys.Key, error)
- func (_m *StarkNet) Delete(id string) (keys.Key, error)
- func (_m *StarkNet) EnsureKey() error
- func (_m *StarkNet) Export(id string, password string) ([]byte, error)
- func (_m *StarkNet) Get(id string) (keys.Key, error)
- func (_m *StarkNet) GetAll() ([]keys.Key, error)
- func (_m *StarkNet) Import(keyJSON []byte, password string) (keys.Key, error)
- type VRF
- func (_m *VRF) Add(key vrfkey.KeyV2) error
- func (_m *VRF) Create() (vrfkey.KeyV2, error)
- func (_m *VRF) Delete(id string) (vrfkey.KeyV2, error)
- func (_m *VRF) Export(id string, password string) ([]byte, error)
- func (_m *VRF) GenerateProof(id string, seed *big.Int) (vrfkey.Proof, error)
- func (_m *VRF) Get(id string) (vrfkey.KeyV2, error)
- func (_m *VRF) GetAll() ([]vrfkey.KeyV2, error)
- func (_m *VRF) GetV1KeysAsV2(password string) ([]vrfkey.KeyV2, error)
- func (_m *VRF) Import(keyJSON []byte, password string) (vrfkey.KeyV2, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSA ¶
CSA is an autogenerated mock type for the CSA type
func NewCSA ¶
func NewCSA(t mockConstructorTestingTNewCSA) *CSA
NewCSA creates a new instance of CSA. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CSA) GetV1KeysAsV2 ¶
GetV1KeysAsV2 provides a mock function with given fields:
type Cosmos ¶
Cosmos is an autogenerated mock type for the Cosmos type
func NewCosmos ¶
func NewCosmos(t mockConstructorTestingTNewCosmos) *Cosmos
NewCosmos creates a new instance of Cosmos. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DKGEncrypt ¶
DKGEncrypt is an autogenerated mock type for the DKGEncrypt type
func NewDKGEncrypt ¶
func NewDKGEncrypt(t mockConstructorTestingTNewDKGEncrypt) *DKGEncrypt
NewDKGEncrypt creates a new instance of DKGEncrypt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DKGEncrypt) Add ¶
func (_m *DKGEncrypt) Add(key dkgencryptkey.Key) error
Add provides a mock function with given fields: key
func (*DKGEncrypt) Create ¶
func (_m *DKGEncrypt) Create() (dkgencryptkey.Key, error)
Create provides a mock function with given fields:
func (*DKGEncrypt) Delete ¶
func (_m *DKGEncrypt) Delete(id string) (dkgencryptkey.Key, error)
Delete provides a mock function with given fields: id
func (*DKGEncrypt) EnsureKey ¶
func (_m *DKGEncrypt) EnsureKey() error
EnsureKey provides a mock function with given fields:
func (*DKGEncrypt) Export ¶
func (_m *DKGEncrypt) Export(id string, password string) ([]byte, error)
Export provides a mock function with given fields: id, password
func (*DKGEncrypt) Get ¶
func (_m *DKGEncrypt) Get(id string) (dkgencryptkey.Key, error)
Get provides a mock function with given fields: id
func (*DKGEncrypt) GetAll ¶
func (_m *DKGEncrypt) GetAll() ([]dkgencryptkey.Key, error)
GetAll provides a mock function with given fields:
func (*DKGEncrypt) Import ¶
func (_m *DKGEncrypt) Import(keyJSON []byte, password string) (dkgencryptkey.Key, error)
Import provides a mock function with given fields: keyJSON, password
type DKGSign ¶
DKGSign is an autogenerated mock type for the DKGSign type
func NewDKGSign ¶
func NewDKGSign(t mockConstructorTestingTNewDKGSign) *DKGSign
NewDKGSign creates a new instance of DKGSign. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DKGSign) Add ¶
func (_m *DKGSign) Add(key dkgsignkey.Key) error
Add provides a mock function with given fields: key
func (*DKGSign) Create ¶
func (_m *DKGSign) Create() (dkgsignkey.Key, error)
Create provides a mock function with given fields:
func (*DKGSign) Delete ¶
func (_m *DKGSign) Delete(id string) (dkgsignkey.Key, error)
Delete provides a mock function with given fields: id
func (*DKGSign) Get ¶
func (_m *DKGSign) Get(id string) (dkgsignkey.Key, error)
Get provides a mock function with given fields: id
type Eth ¶
Eth is an autogenerated mock type for the Eth type
func NewEth ¶
func NewEth(t mockConstructorTestingTNewEth) *Eth
NewEth creates a new instance of Eth. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Eth) CheckEnabled ¶
CheckEnabled provides a mock function with given fields: address, chainID
func (*Eth) EnabledKeysForChain ¶
EnabledKeysForChain provides a mock function with given fields: chainID
func (*Eth) EnsureKeys ¶
EnsureKeys provides a mock function with given fields: chainIDs
func (*Eth) GetNextNonce ¶
func (_m *Eth) GetNextNonce(address common.Address, chainID *big.Int, qopts ...pg.QOpt) (int64, error)
GetNextNonce provides a mock function with given fields: address, chainID, qopts
func (*Eth) GetRoundRobinAddress ¶
func (_m *Eth) GetRoundRobinAddress(chainID *big.Int, addresses ...common.Address) (common.Address, error)
GetRoundRobinAddress provides a mock function with given fields: chainID, addresses
func (*Eth) GetStatesForChain ¶
GetStatesForChain provides a mock function with given fields: chainID
func (*Eth) GetStatesForKeys ¶
GetStatesForKeys provides a mock function with given fields: _a0
func (*Eth) IncrementNextNonce ¶
func (_m *Eth) IncrementNextNonce(address common.Address, chainID *big.Int, currentNonce int64, qopts ...pg.QOpt) error
IncrementNextNonce provides a mock function with given fields: address, chainID, currentNonce, qopts
func (*Eth) Reset ¶
Reset provides a mock function with given fields: address, chainID, nonce, qopts
func (*Eth) SignTx ¶
func (_m *Eth) SignTx(fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
SignTx provides a mock function with given fields: fromAddress, tx, chainID
func (*Eth) SubscribeToKeyChanges ¶
func (_m *Eth) SubscribeToKeyChanges() (chan struct{}, func())
SubscribeToKeyChanges provides a mock function with given fields:
func (*Eth) XXXTestingOnlyAdd ¶
XXXTestingOnlyAdd provides a mock function with given fields: key
func (*Eth) XXXTestingOnlySetState ¶
XXXTestingOnlySetState provides a mock function with given fields: _a0
type Master ¶
Master is an autogenerated mock type for the Master type
func NewMaster ¶
func NewMaster(t mockConstructorTestingTNewMaster) *Master
NewMaster creates a new instance of Master. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Master) DKGEncrypt ¶
func (_m *Master) DKGEncrypt() keystore.DKGEncrypt
DKGEncrypt provides a mock function with given fields:
func (*Master) Migrate ¶
func (_m *Master) Migrate(vrfPassword string, f keystore.DefaultEVMChainIDFunc) error
Migrate provides a mock function with given fields: vrfPassword, f
type OCR ¶
OCR is an autogenerated mock type for the OCR type
func NewOCR ¶
func NewOCR(t mockConstructorTestingTNewOCR) *OCR
NewOCR creates a new instance of OCR. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OCR) GetV1KeysAsV2 ¶
GetV1KeysAsV2 provides a mock function with given fields:
type OCR2 ¶
OCR2 is an autogenerated mock type for the OCR2 type
func NewOCR2 ¶
func NewOCR2(t mockConstructorTestingTNewOCR2) *OCR2
NewOCR2 creates a new instance of OCR2. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OCR2) EnsureKeys ¶
EnsureKeys provides a mock function with given fields:
func (*OCR2) GetAllOfType ¶
GetAllOfType provides a mock function with given fields: _a0
type P2P ¶
P2P is an autogenerated mock type for the P2P type
func NewP2P ¶
func NewP2P(t mockConstructorTestingTNewP2P) *P2P
NewP2P creates a new instance of P2P. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*P2P) GetOrFirst ¶
GetOrFirst provides a mock function with given fields: id
func (*P2P) GetV1KeysAsV2 ¶
GetV1KeysAsV2 provides a mock function with given fields:
type Solana ¶
Solana is an autogenerated mock type for the Solana type
func NewSolana ¶
func NewSolana(t mockConstructorTestingTNewSolana) *Solana
NewSolana creates a new instance of Solana. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type StarkNet ¶
StarkNet is an autogenerated mock type for the StarkNet type
func NewStarkNet ¶
func NewStarkNet(t mockConstructorTestingTNewStarkNet) *StarkNet
NewStarkNet creates a new instance of StarkNet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type VRF ¶
VRF is an autogenerated mock type for the VRF type
func NewVRF ¶
func NewVRF(t mockConstructorTestingTNewVRF) *VRF
NewVRF creates a new instance of VRF. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*VRF) GenerateProof ¶
GenerateProof provides a mock function with given fields: id, seed
func (*VRF) GetV1KeysAsV2 ¶
GetV1KeysAsV2 provides a mock function with given fields: password