KardiaID Service Design
KAIBase Design
Last updated
KAIBase Design
Last updated
The KardiaID Service serves as an interface between user applications and KardiaChain Mainnet. It provides authorization service using secure access-token to interact with KardiaChain Mainnet.
KardiaID Service implements authorization protocol similar to OAuth2, providing client applications with secure delegated access. Users use the client app to login to KardiaID Service with username & password and obtain access-token. Client app then uses access-token to interact with Kardia blockchain.
Automatically creates new KardiaChain wallet
KardiaID Service generates new Kardia Mainnet wallet for new users during the OAuth2 registration.
Wallet private keys are kept on KardiaID Service, the client uses only access-token to interact with the Kardia blockchain through KardiaID Service API.
Transaction sign & send
Blockchain nodes accept only fully-signed & encoded transactions.
Client applications can just create simple transaction data in JSON and send it to KardiaID Service API.
KardiaID Service signs the transaction with the user's private key and forward to Kardia Mainnet.
KardiaID Service can optionally provide advanced management for the user wallet.
Seed coin deposit
New blockchain wallet has zero coin balance, is unable to pay network fees and thus cannot send any transactions until receiving at least a small amount from another wallet. This is a common problem for users created inside client applications.
As the gateway, KardiaID Service can provide seed coin deposit service for new users. Application developers can arrange through KardiaID Service to give every new user a small KAI amount, thus allowing each user to interact with the blockchain without delay.
Example from KAI Membership phone app:
A user registers a new account on the KAI Membership phone app.
The user Mainnet wallet is generated during registration.
KardiaID Service automatically sends the user wallet seed fund of 0.01 KAI.
The user wants to play a game that utilizes Smart Contract on the KardiaChain Mainnet.
As the condition is met, the user account can now interact with Smart Contract by sending transactions with enough network fees.
The user can instantly play the game without any delay.