actions

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
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 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

func UpdatePolicy(t *testing.T, pc *utils.ProxyConfig, epochID uint32, voters []common.Address, privKeys []*ecdsa.PrivateKey, pubKeysMap map[common.Address]*ecdsa.PublicKey) (*policy.SigningPolicy, []common.Address, []*ecdsa.PrivateKey, map[common.Address]*ecdsa.PublicKey)

Types

This section is empty.

Jump to

Keyboard shortcuts

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