du395911059
du395911059
  • 发布:2019-05-22 14:58
  • 更新:2020-03-23 12:04
  • 阅读:2301

新版本不能支持大运算的随机数的生成(数字货币,助记词,私钥) 急

分类:uni-app

数字货币私钥的生成、助记词的生成,真机测试或者打包安装后,都报错。

前一个版本没有问题。。这次新版本1.9.8报错。

比特币的js库:https://github.com/bitcoinjs/bitcoinjs-lib
bip39比特币助记词js库:https://github.com/bitcoinjs/bip39

控制台报错:
14:29:34.994 [JS Framework] Failed to execute the callback function:
14:29:34.995 + Error: Secure random number generation is not supported by this browser.
14:29:34.995 Use Chrome, Firefox or Internet Explorer 11 __ERROR

2019-05-22 14:58 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

HBuilderX 2.6.6 alpha 已修复

DCloud_UNI_FXY

DCloud_UNI_FXY

前一个版本是哪个版本?
你现在用的是 alpha 版本,还是正式版本,编译的时候,打印的是不是,自定义组件模式
在 manifest.json app-plus 修改为 usingComponents:false 测试下

  • du395911059 (作者)

    现在用的是正式版本的自定义组件模式,改为usingComponents:false,没有报错了。可是非自定义组件模式在360手机下是白屏。

    2019-05-22 15:35

tony马

tony马

[Vue warn]: Error in onLaunch hook: "Error: Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11"

遇到同样问题,请问下这个怎么解决

  • du395911059 (作者)

    已改成后台生成助记词。

    2019-07-02 16:34

井通小粉

井通小粉

可以尝试井通底层,已有开源代码

井通小粉

井通小粉

井通墨客一件发币

abdasdf

abdasdf

10:38:02.796 38:08.069 14113 14131 E console : [ERROR] reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->TypeError: undefined is not an object (evaluating 'window.EventSource')
10:38:02.816 38:08.069 14113 14131 E console : getTemplateInfo== template md5 4ce53ad70ab969f9d9f02bfc196ff81 length 6843665 base64 md5 BM5TrXCrlp+dnwK/wZb/gQ== response header {"templateSourceBase64MD5":["BM5TrXCrlp+dnwK/wZb/gQ=="],"templateSourceMD5":["4ce53ad70ab969f9d9f02bfc196ff81"]}
11:11:18.563 DONE Build complete. Watching for changes...
请问开发钱包的时候编译app有遇到过这个问题吗

JakeWarthon

JakeWarthon

发现ios在自定义组件下可以打包,android就不行不知道是不是编辑器的问题啊

DCloud_heavensoft

DCloud_heavensoft

现网版本安卓确实不支持安全随机数api,这个是weex jscore的问题,这几天会发新版,补充这个功能

  • JakeWarthon

    问下 这边新版本是什么时候发布 我这边挺急的 项目等待上线了

    2019-11-09 14:37

  • JakeWarthon

    今天下载了2.4.1版本发现还是不支持随机数啊 Missing strong random number source; using weak randomBytes

    2019-11-15 14:53

  • DCloud_UNI_GSQ

    回复 JakeWarthon: 提供一下示例工程

    2019-11-15 17:46

JakeWarthon

JakeWarthon

我这边测试发现mac上是可以打出日志的而在win上是不行的(两者都在真机上调试的【win->android】【mac->iphone】)

  • DCloud_UNI_GSQ

    参考:https://ask.dcloud.net.cn/question/83049

    2019-11-15 18:36

天机不可泄露

天机不可泄露 - *******

安卓真机还是不支持这个,还是报错
[JS Framework] Failed to execute the callback function:
17:01:51.764 Error: Secure random number generation is not supported by this browser.
17:01:51.781 Use Chrome, Firefox or Internet Explorer 11
17:01:51.804 reportJSException >>>> exception function:callJS, exception:JavaScript execute error!Exception: Error: Secure random number generation is not supported by this browser.
17:01:51.824 Use Chrome, Firefox or Internet Explorer 11

  • DCloud_UNI_GSQ

    参考:https://ask.dcloud.net.cn/question/83049

    2020-01-14 17:19

该问题目前已经被锁定, 无法添加新回复