rawActionFunctions: {
    batchGenerateEncryptedKeys: ((__namedParameters: BatchGenerateEncryptedKeysParams) => Promise<{
        generateEncryptedPrivateKey: {
            ciphertext: string;
            dataToEncryptHash: string;
            memo: string;
            publicKey: string;
        };
        network: "evm" | "solana";
        signMessage?: {
            signature: string;
        };
    }[]>);
    exportPrivateKey: ((params: ExportPrivateKeyParams) => Promise<string>);
    generateEncryptedEthereumPrivateKey: ((__namedParameters: GenerateEncryptedEthereumPrivateKeyParams) => Promise<{
        ciphertext: string;
        dataToEncryptHash: string;
        publicKey: string;
    }>);
    generateEncryptedSolanaPrivateKey: ((__namedParameters: GenerateEncryptedSolanaPrivateKeyParams) => Promise<{
        ciphertext: string;
        dataToEncryptHash: string;
        publicKey: string;
    }>);
    signMessageWithEncryptedEthereumKey: ((pkpAddress: SignMessageWithEncryptedEthereumKeyParams) => Promise<string>);
    signMessageWithEncryptedSolanaKey: ((params: SignMessageWithEncryptedSolanaKeyParams) => Promise<string>);
    signTransactionWithEncryptedEthereumKey: ((__namedParameters: SignTransactionWithEncryptedEthereumKeyParams) => Promise<string>);
    signTransactionWithEncryptedSolanaKey: ((params: SignTransactionWithEncryptedSolanaKeyParams) => Promise<string>);
} = ...

Type declaration

  • batchGenerateEncryptedKeys: ((__namedParameters: BatchGenerateEncryptedKeysParams) => Promise<{
        generateEncryptedPrivateKey: {
            ciphertext: string;
            dataToEncryptHash: string;
            memo: string;
            publicKey: string;
        };
        network: "evm" | "solana";
        signMessage?: {
            signature: string;
        };
    }[]>)
      • (__namedParameters): Promise<{
            generateEncryptedPrivateKey: {
                ciphertext: string;
                dataToEncryptHash: string;
                memo: string;
                publicKey: string;
            };
            network: "evm" | "solana";
            signMessage?: {
                signature: string;
            };
        }[]>
      • Parameters

        • __namedParameters: BatchGenerateEncryptedKeysParams

        Returns Promise<{
            generateEncryptedPrivateKey: {
                ciphertext: string;
                dataToEncryptHash: string;
                memo: string;
                publicKey: string;
            };
            network: "evm" | "solana";
            signMessage?: {
                signature: string;
            };
        }[]>

  • exportPrivateKey: ((params: ExportPrivateKeyParams) => Promise<string>)
      • (params): Promise<string>
      • Exports the private key after decrypting and removing the salt from it.

        Parameters

        • params: ExportPrivateKeyParams

        Returns Promise<string>

        • Returns a decrypted private key.
  • generateEncryptedEthereumPrivateKey: ((__namedParameters: GenerateEncryptedEthereumPrivateKeyParams) => Promise<{
        ciphertext: string;
        dataToEncryptHash: string;
        publicKey: string;
    }>)
      • (__namedParameters): Promise<{
            ciphertext: string;
            dataToEncryptHash: string;
            publicKey: string;
        }>
      • Parameters

        • __namedParameters: GenerateEncryptedEthereumPrivateKeyParams

        Returns Promise<{
            ciphertext: string;
            dataToEncryptHash: string;
            publicKey: string;
        }>

  • generateEncryptedSolanaPrivateKey: ((__namedParameters: GenerateEncryptedSolanaPrivateKeyParams) => Promise<{
        ciphertext: string;
        dataToEncryptHash: string;
        publicKey: string;
    }>)
      • (__namedParameters): Promise<{
            ciphertext: string;
            dataToEncryptHash: string;
            publicKey: string;
        }>
      • Parameters

        • __namedParameters: GenerateEncryptedSolanaPrivateKeyParams

        Returns Promise<{
            ciphertext: string;
            dataToEncryptHash: string;
            publicKey: string;
        }>

  • signMessageWithEncryptedEthereumKey: ((pkpAddress: SignMessageWithEncryptedEthereumKeyParams) => Promise<string>)
      • (pkpAddress): Promise<string>
      • Signs a message with the Ethers wallet which is also decrypted inside the Lit Action.

        Parameters

        • pkpAddress: SignMessageWithEncryptedEthereumKeyParams

          The Eth address of the PKP which is associated with the Wrapped Key

        Returns Promise<string>

        • Returns a message signed by the Ethers Wrapped key. Or returns errors if any.
  • signMessageWithEncryptedSolanaKey: ((params: SignMessageWithEncryptedSolanaKeyParams) => Promise<string>)
      • (params): Promise<string>
      • Bundles solana/web3.js package as it's required to sign a message with the Solana wallet which is also decrypted inside the Lit Action.

        Parameters

        • params: SignMessageWithEncryptedSolanaKeyParams

          The access control condition that allows only the pkpAddress to decrypt the Wrapped Key

        Returns Promise<string>

        • Returns a message signed by the Solana Wrapped key. Or returns errors if any.
  • signTransactionWithEncryptedEthereumKey: ((__namedParameters: SignTransactionWithEncryptedEthereumKeyParams) => Promise<string>)
      • (__namedParameters): Promise<string>
      • Signs a transaction with the Ethers wallet whose private key is decrypted inside the Lit Action.

        Parameters

        • __namedParameters: SignTransactionWithEncryptedEthereumKeyParams

        Returns Promise<string>

        • Returns the transaction hash if broadcast is set as true else returns only the signed transaction. Or returns errors if any.
  • signTransactionWithEncryptedSolanaKey: ((params: SignTransactionWithEncryptedSolanaKeyParams) => Promise<string>)
      • (params): Promise<string>
      • Bundles solana/web3.js package as it's required to sign a transaction with the Solana wallet which is also decrypted inside the Lit Action.

        Parameters

        • params: SignTransactionWithEncryptedSolanaKeyParams

          The parameters for signing the transaction

        Returns Promise<string>

        • Returns the transaction signature. Or returns errors if any.