0.0.2 • Published 5 months ago

hippocrat-wallet-sdk v0.0.2

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

hippocrat-wallet-sdk

Bitcoin, Hippocrat, DID and Data Wallet SDK for Node, Browser and Mobile

Easy Peasy Lemon Squeezy to Use. Including

  • generate, encrypt and decrypt mnemonic (following bip39)
  • derive account, address, and child of address (following bip32, bip44 and bip84)
  • make transaction on Bitcoin either to transfer Bitcoin or write data on Bitcoin
  • make transaction on Ethereum to transfer Hippocrat token
  • encrypt & decrypt data following ECIES (AES-CTR with ECDH derived key)
  • create Hippocrat(HPO) DID, sign with DID, verify signature with DID

...and more!

Install

npm install hippocrat-wallet-sdk

BtcWallet

BtcPayment

  • get Bitcoin signer to sign Bitcoin transaction from mnemonic

  • make transaction to write messages on Bitcoin as OP_RETURN

  • make transaction to transfer Bitcoin to target addresses

HpoPayment

  • make transaction to transfer Hippocrat to target addresses
  • generate ethereum address from private key to receive ethereum and hippocrat

RareData

  • encrypt & decrypt data following ECIES (AES-CTR with ECDH derived key)

HpoDid

  • create HPO DID
  • sign message with HPO DID private key
  • verify signed message(signature) with HPO DID public key