Documentation
¶
Index ¶
- Constants
- func CosignerAddressesAndProvider(cosignerPrivKeys []*ecdsa.PrivateKey, providerPrivKeys []*ecdsa.PrivateKey) ([]common.Address, map[common.Address]bool)
- func DeleteWallet(t *testing.T, pc *utils.ProxyConfig, walletID common.Hash, keyID uint64, ...)
- func FDCProve(t *testing.T, pc *utils.ProxyConfig, ...) *fdc.ProveResponse
- func GenerateWallet(t *testing.T, pc *utils.ProxyConfig, teeID common.Address, walletID [32]byte, ...) *commonwallet.IWalletKeyManagerKeyExistence
- func GetAdditionalFixedMessage(t *testing.T, pc *utils.ProxyConfig, challenge [32]byte, ...) ([]byte, []hexutil.Bytes, []*ecdsa.PrivateKey, error)
- func GetBackup(t *testing.T, pc *utils.ProxyConfig, walletID [32]byte, keyID uint64, ...) *backup.WalletBackup
- func GetTeeAttestation(t *testing.T, pc *utils.ProxyConfig, privKeys []*ecdsa.PrivateKey, ...)
- func InitializePolicy(t *testing.T, pc *utils.ProxyConfig, epochId uint32) (*policy.SigningPolicy, []common.Address, []*ecdsa.PrivateKey, ...)
- func RecoverWallet(t *testing.T, pc *utils.ProxyConfig, walletID common.Hash, keyID uint64, ...) *commonwallet.IWalletKeyManagerKeyExistence
- func SignTransaction(t *testing.T, pc *utils.ProxyConfig, teeID common.Address, ...) *types.ActionResponse
- func UpdatePolicy(t *testing.T, pc *utils.ProxyConfig, epochID uint32, voters []common.Address, ...) (*policy.SigningPolicy, []common.Address, []*ecdsa.PrivateKey, ...)
Constants ¶
const TotalWeight = 10000
Variables ¶
This section is empty.
Functions ¶
func CosignerAddressesAndProvider ¶
func CosignerAddressesAndProvider(cosignerPrivKeys []*ecdsa.PrivateKey, providerPrivKeys []*ecdsa.PrivateKey) ([]common.Address, map[common.Address]bool)
func DeleteWallet ¶
func DeleteWallet( t *testing.T, pc *utils.ProxyConfig, walletID common.Hash, keyID uint64, privKeys []*ecdsa.PrivateKey, rewardEpochID uint32, nonce *big.Int, )
DeleteWallet Send KEY_DELETE instruction, verifies response and checks that the wallet is deleted from proxy wallet storage
func FDCProve ¶
func FDCProve( t *testing.T, pc *utils.ProxyConfig, providerPrivKeys, cosignerPrivKeys []*ecdsa.PrivateKey, rewardEpochID uint32, ) *fdc.ProveResponse
func GenerateWallet ¶
func GenerateWallet( t *testing.T, pc *utils.ProxyConfig, teeID common.Address, walletID [32]byte, keyID uint64, privKeys []*ecdsa.PrivateKey, adminWalletPublicKeys []commonwallet.PublicKey, rewardEpochID uint32, ) *commonwallet.IWalletKeyManagerKeyExistence
GenerateWallet Sends KEY_GENERATE instruction for wallet with specified admins, verifies IWalletKeyManagerKeyExistence proof and checks that wallet is present in proxy wallet storage.
func GetAdditionalFixedMessage ¶
func GetAdditionalFixedMessage(t *testing.T, pc *utils.ProxyConfig, challenge [32]byte, originalMessage fdc2.IFdc2HubFdc2AttestationRequest, timestamp uint64, cosignerAndProvider map[common.Address]bool, providerPrivKeys []*ecdsa.PrivateKey, cosignerPrivKeys []*ecdsa.PrivateKey, cosignerAddresses []common.Address, cosignersThreshold uint64) ([]byte, []hexutil.Bytes, []*ecdsa.PrivateKey, error)
GetAdditionalFixedMessage returns the additional fixed message, the variable messages (signatures) and the private keys for the provider and cosigner
func GetBackup ¶
func GetBackup(t *testing.T, pc *utils.ProxyConfig, walletID [32]byte, keyID uint64, teeID common.Address) *backup.WalletBackup
func GetTeeAttestation ¶
func GetTeeAttestation(t *testing.T, pc *utils.ProxyConfig, privKeys []*ecdsa.PrivateKey, rewardEpochID uint32)
func InitializePolicy ¶
func InitializePolicy(t *testing.T, pc *utils.ProxyConfig, epochId uint32) (*policy.SigningPolicy, []common.Address, []*ecdsa.PrivateKey, map[common.Address]*ecdsa.PublicKey)
func RecoverWallet ¶
func RecoverWallet( t *testing.T, pc *utils.ProxyConfig, walletID common.Hash, keyID uint64, providersPrivKeys, adminsPrivKeys []*ecdsa.PrivateKey, rewardEpochID uint32, nonce *big.Int, walletBackup *backup.WalletBackup, ) *commonwallet.IWalletKeyManagerKeyExistence
RecoverWallet Recovers providers & admins wallet shares, sends KEY_DATA_PROVIDER_RESTORE instruction, verifies IWalletKeyManagerKeyExistence proof and checks that recovered wallet is in proxy wallet storage.
func SignTransaction ¶
func SignTransaction( t *testing.T, pc *utils.ProxyConfig, teeID common.Address, paymentInstruction payments.ITeePaymentsPaymentInstructionMessage, privKeys []*ecdsa.PrivateKey, rewardEpochID uint32, ) *types.ActionResponse
func UpdatePolicy ¶
Types ¶
This section is empty.