Liking cljdoc? Tell your friends :D
Clojure only.

bips.bip44


derivation-pathclj

(derivation-path coin-type account)
(derivation-path coin-type account hardened-indicator)
(derivation-path coin-type account chain address)
(derivation-path coin-type account chain address hardened-indicator)

The derivation-path multi-arity function. The first version takes four arguments: a coin-type, an account index, a chain type, an address index and a configuration map for setting the hardened-indicator symbol (e.g {:hardened-indicator "'"}). It uses these values to construct a string representing a path to a specific wallet address. Throws an exception with an error message if the coin-type in not found in coin_types.edn. A second version taking two arguments is used to derive an account address from a coin-type, an account index and an optional hardened-indicator symbol.

The derivation-path multi-arity function. The first version takes
four arguments: a `coin-type`, an `account` index, a `chain` type,
an `address` index and a configuration map for setting the
`hardened-indicator` symbol (e.g ``{:hardened-indicator "'"}``).
It uses these values to construct a string representing a path to a
specific wallet address.  Throws an exception with an error message
if the `coin-type` in not found in `coin_types.edn`.  A second
version taking two arguments is used to derive an account address
from a `coin-type`, an `account` index and an optional
`hardened-indicator` symbol.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close