Skip to content

Provide an implementation of EncryptedTransactionAnalyzer inside skaled #973

Description

@sync-by-unito

Threshold encryption needs to be able to get the last argument of a smart contract call from Ethereum transaction

Provide an implementation of the following interface

class EncryptedTransactionAnalyzer {

public: virtual shared_ptr<std::vector<uint8_t>> getEncryptedData( const std::vector<uint8_t>& transaction) = 0;

};

  • If transaction data includes a byte segment:
  • starting wth TE_MAGIC_START=0xf84a1cf7214ae051cae8
  • ending with TE_MAGIC_END=0x98a773d884b2f1c4ac27

Return this byte segment (without magic numbers) as a shared pointer to bytes

Otherwise, return null

┆Issue is synchronized with this Jira Task

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions