RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-18:00
你可能遇到了下面的问题
关闭右侧工具栏

技术支持

swtc-factory
  • 作者:井通至尚科技有限
  • 发表时间:2019-04-23 10:00
  • 来源:https://github.com/swtcca/swtc
 
 
 

The SWTC Base Factory JavaScript Library

swtc-factory == jcc-jingtum-base-lib

GitHub地址: https://github.com/swtcca/swtc-factory

 

with enhancements

 


  1. supports more wallets for different chains

     

    • ripple, bitcoin
    • call, stream
    • jingtum, bizain
    • supports ed25519 algorithm for seed

 

usages

 

	
  1. > .load test.js
  2. const Wallet = require('swtc-factory').Wallet
  3. const SwtcChains = require('swtc-chains')
  4. var wallet
  5. SwtcChains.forEach( chain => {
  6. let token = chain.currency
  7. console.log(`\t... with secp256k1 ...`)
  8. wallet = Wallet.generate(token)
  9. console.log(`${token} address:\t${wallet.address}`)
  10. console.log(`${token} secret:\t${wallet.secret}`)
  11. console.log(`\t... with ed25519 ...`)
  12. wallet = Wallet.generate(token, {algorithm: 'ed25519'})
  13. console.log(`${token} address:\t${wallet.address}`)
  14. console.log(`${token} secret:\t${wallet.secret}`)
  15. })
  16.  
  17. ... with secp256k1 ...
  18. BTC address: 16kXez5CogMiYjhYZt4ypiBKMdZMQLe2Kc
  19. BTC secret: 35MDfeFj9ZF6WCYXpPcAbzw3Ymt65
  20. ... with ed25519 ...
  21. BTC address: 18r5HQz1MEhK3Figc66TnWfPYoKpRtkfmw
  22. BTC secret: 3FdVDT7tbqK5uRny3jCSaN7pvm5ai5m
  23. ... with secp256k1 ...
  24. XRP address: rsmSNgwLfx8s9GwKEarcWxsFuWxXUVzCJy
  25. XRP secret: snbratgKcMgQhfKQ8P4m7bsrXhmkQ
  26. ... with ed25519 ...
  27. XRP address: rwrKqUvoycV9gK4DuHbESF39NnVXjMvor7
  28. XRP secret: sEd7kFD1erA33sVPsKNbqAaGp6NoAVE
  29. ... with secp256k1 ...
  30. XLM address: gwErV7U7pKZRfpzHNZzVFQgHSdaYwpcENv
  31. XLM secret: paaoyoG2pCuVgtxduppVShVgN98VX
  32. ... with ed25519 ...
  33. XLM address: gKpWGStT7EJ46Ze1TvS6A3EWhtvaATQT1K
  34. XLM secret: pEdSSeprhmqrtCcAvSRWrdAM6kcjw47
  35. ... with secp256k1 ...
  36. CALL address: cHG4tRGC3ihGbqWY5fnoh1Fwhy2bJER5HP
  37. CALL secret: sh9Rta1dmEayh8o2ZftBYzb4kmmtZ
  38. ... with ed25519 ...
  39. CALL address: cwmfZvrBsTuUV9tUhggVEVvFk63wm8kbo7
  40. CALL secret: sEdTvPQE5kFVta8f5AxBLZKZ8Z3XCmW
  41. ... with secp256k1 ...
  42. STM address: v4U6Zw3EuDTuL6yyxmAgKpijAcXZwBKEAc
  43. STM secret: shuMxfHs7xKAkX4LYAkggnrzSduqb
  44. ... with ed25519 ...
  45. STM address: vwHU7sV56ZffeVBc2ijXqztKGoiKX6TdFh
  46. STM secret: sEdVGc1nGor7HmmqfjN9bb1psyCvnjr
  47. ... with secp256k1 ...
  48. SWT address: jfnxW6tgzuUEMSU8n1zi5PpP3rhX6XAjVo
  49. SWT secret: shaRNXjy6aDGbn6a8MgCpMcJCE2om
  50. ... with ed25519 ...
  51. SWT address: jpMoHNKUSk1bxDTozCXvrbubr4CExAGkYP
  52. SWT secret: sEdSCykKdVPiREXCkek5ARSsE4PxmJ3
  53. ... with secp256k1 ...
  54. BWT address: bHU4ap7ANtWihUoJ1qhABn1imtK4Jigain
  55. BWT secret: saNaU2fEHtRY4Vx5oQiWS15n2Hizz
  56. ... with ed25519 ...
  57. BWT address: bShESv4x2Bj7XXLxav9FWD85AP4CLf44X
  58. BWT secret: sEdVMW7dRrD1qU7uYhbNRAkgKUx6MaU