Tonomy-Foundation / Tonomy-ID-SDK

This Software Development Kit is used in Tonomy ID to interact and call with the Antelope blockchain and services. It is also used as the public API for integration by applications to do single sign-on, share credentials and sign transactions.
https://tonomy-id-sdk-tonomy-foundation.vercel.app
Apache License 2.0
5 stars 1 forks source link

Multi network transaction sign data: abstract Transaction class #352

Open sadiabbasi opened 5 months ago

sadiabbasi commented 5 months ago

Acceptance criteria:

abstract class Transaction {
  // data for transaction (depends on network

  // Check if account exists and if not create the account, returns the account name
  abstract getOrCreateAccount(privateKey: PrivateKey): string
  // e.g. use https://hyperion.docs.eosrio.io/api/v2/#v2stateget_key_accounts for Antelope networks

  // Uses SDK from network to sign transaction, sends to network, returns transaction ID
  abstract signTransactionAndSendToNetwork(): string
}