📘
TEOS User Guides
Contact CoreLedgerPrivacy Policy
TEOS API
TEOS API
  • 👋Welcome to TEOS API
  • Get started
  • TEOS API overview
    • Terms and concepts
      • Asset
      • Spark
      • Wallet
      • Supply
      • Warp
      • Invoice
      • Transaction
    • Architecture note
      • Tenant setup options
    • Authentication
    • Versioning
  • Using TEOS API
    • Postman examples
    • Rate limits
    • Dealing with blockchain transactions
      • How to get Ether for signing transactions
      • Transaction creation and submission
        • First transaction creation and submission for a new address on the private blockchain
    • Handling errors
      • 1xxxx codes
      • 2xxxx codes
      • 3xxxx codes
    • TEOS Events
    • Warp search
  • TEOS API references
    • TEOS API Swagger (OpenAPI)
  • Using additional APIs of TEOS Platform
    • User authentication flow with TEOS Authentication service and TMS
    • Device authorization flow with TxServer and TEOS Authentication service
    • Adding wallet to the TEOS Platform flow with TxServer and TEOS API
    • Using TxServer API
      • TxServer API (OpenAPI)
      • Key Pair Generation. Transaction Signing
      • Device Restoration
    • Using TEOS Authentication service
      • TEOS Authentication Service API
    • Using TMS API
      • TMS API Swagger (OpenAPI)
      • Handling errors
      • Changelog
    • Using Discovery Service
  • FAQ
  • Changelog
    • v0.9
    • Non-versioned changes
    • Previous versions (not supported)
  • Troubleshooting
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Using additional APIs of TEOS Platform
  2. Using TxServer API

Key Pair Generation. Transaction Signing

PreviousUsing TxServer APINextDevice Restoration

Last updated 1 year ago

Was this helpful?

There is plenty of information in the internet about public-key cryptography (PKC). Therefore here only essentials are documented, so these can be related from other parts of the TEOS documentation.

TL;DR

  • A public key is to cryptocurrency what an IBAN is to a bank account: the address on which you can receive cryptocurrencies or sparks on a blockchain. Also it is used as a source for transactions.

  • The private key is what authorizes you to control sparks attached to a public key and initiate transactions from that address.

  • Public and private keys are always created in pairs.

  • A secret recovery phrase (or mnemonic phrase) is a human-readable master private key in the form of a sequence of words. It can contain an unlimited amount of public/private key pairs.

  • If a secret phrase/private key is lost, there is no way to retrieve it.

Key Pair generation

To utilize TEOS platform, the key pair must be created in one or another way. Applications like TXMobile or provide a way to generate a key pair as a part of their main process. These applications keep the private key encrypted and secured on the user device. To use the Teos API the key pairs could be generated using libraries and frameworks, available for most of actual languages. Some examples (the list does not pretend to be complete) are below:

  • nodejs v10.12 now supports this natively with

Just search the internet, using your language and "keypair generation" as the keywords

After the key pair is created, the private key should be securely stored and used in transaction signing process.

Transaction Signing

Refer to separate articles:

White Label Mobile App (WLA)
Nethereum
crypto.generateKeyPair
NPM 'crypto' module
react-native-rsa-native package
Transaction
Transaction creation and submission