Skip to content

crypto-bundle/bc-wallet-tron-hdwallet

Repository files navigation

Bc-wallet-tron-hdwallet

Description

HdWallet-plugin is third and last part of hd-wallet applications bundle. This repository contains implementation of Hierarchical Deterministic Wallet for Tron blockchain. Also, this repo contains Helm-chart description for deploy full hdwallet applications bundle for Tron.

Another two parts of hdwallet-bundle is:

Tron HdWallet plugin

Implementation of HdWallet plugin contains exported functions:

  • NewPoolUnitfunc(walletUUID string, mnemonicDecryptedData string) (interface{}, error)
  • GenerateMnemonic func() (string, error)
  • ValidateMnemonic func(mnemonic string) bool
  • GetChainID() int
  • GetSupportedChainIDs() []int
  • GetPluginName func() string
  • GetPluginReleaseTag func() string
  • GetPluginCommitID func() string
  • GetPluginShortCommitID func() string
  • GetPluginBuildNumber func() string
  • GetPluginBuildDateTS func() string

Example of usage hd-wallet pool_unit you can see in plugin/pool_unit_test.go file. Example of plugin integration in cmd/loader_test/main.go file.

Tron HdWallet plugin supports only one possible ChainID value, it is main Tron blockchain coinID - 195

Deployment

Currently, support only kubernetes deployment flow via Helm

Kubernetes

Application must be deployed as part of bc-wallet-<BLOCKCHAIN_NAME>-hdwallet bundle. bc-wallet-tron-hdwallet-api application must be started as single container in Kubernetes Pod with shared volume.

You can see example of HELM-chart deployment application in next repositories:

Third party libraries

Some parts of this plugin picked up from another repository - Go HD Wallet tools written by Cayman(wemeetagain)

Licence

bc-wallet-tron-hdwallet is licensed under the MIT NON-AI License.