Comments (7)
测试用例用了较小的参数以加快运行速度。
Release 模式会快一些。Identity 创建时要生成三种不同的钱包,iPhone 7上10秒上下,大致属于可接受范围。或者可以象测试案例一下,修改参数:
https://github.com/consenlabs/token-core-ios/blob/master/Tests/TestCase.swift#L50
from token-core-ios.
感谢回复. 删除了创建 Identity
初始化默认生成的 ETH
和 BTC
钱包代码后. 速度大概在 4 秒左右
from token-core-ios.
@ashchan 方便的话. 能问下
EOSTransaction(
data: "c578065b93aec6a7c811000000000100a6823403ea3055000000572d3ccdcd01000000602a48b37400000000a8ed323225000000602a48b374208410425c95b1ca80969800000000000453595300000000046d656d6f00",
publicKeys: ["EOS5SxZMjhKiXsmjxac8HBx56wWdZV1sCLZESh3ys1rzbMn4FUumU"],
chainID: TestData.eosChainID
)
中 data
是怎么生成的嘛, 看了 eosjs
的源码. 好像是一个结构体, 调用了 fcbuffer 的方法. 得到一个 16进制字符串.
我想问下. iOS 的操作是不是 transaction
json
字典直接转 字符串 . 然后 调用 tk_toHexString
方法.生成16进制数据. 得到的结果就是所需要的 data
from token-core-ios.
@linKnowEasy 这部分我不是太了解,token-core 部分没有做处理。请 @XuNeal 看看该怎么构建 data。
from token-core-ios.
@ashchan �感谢回复. 我自己再研究下
from token-core-ios.
@ashchan 方便的话. 能问下
EOSTransaction( data: "c578065b93aec6a7c811000000000100a6823403ea3055000000572d3ccdcd01000000602a48b37400000000a8ed323225000000602a48b374208410425c95b1ca80969800000000000453595300000000046d656d6f00", publicKeys: ["EOS5SxZMjhKiXsmjxac8HBx56wWdZV1sCLZESh3ys1rzbMn4FUumU"], chainID: TestData.eosChainID )
中
data
是怎么生成的嘛, 看了eosjs
的源码. 好像是一个结构体, 调用了 fcbuffer 的方法. 得到一个 16进制字符串.
我想问下. iOS 的操作是不是transaction
json
字典直接转 字符串 . 然后 调用tk_toHexString
方法.生成16进制数据. 得到的结果就是所需要的data
请问下,后面这个问题你有研究出结果吗?
from token-core-ios.
@simondaigogogo
https://blog.csdn.net/akai9898/article/details/83447788
参考这个系列
其实是把交易数据发到链上. 进行序列化. 打包
过去的有点久了. 只能帮到这里了
from token-core-ios.
Related Issues (20)
- Cocoapods pod install一直提示 [!] Unable to find a specification for 'CoreBitcoin'
- 想问下我能找到私钥的方法,但是公钥的方法在哪啊?
- pod install报错 [!] Error installing GRKOpenSSLFramework
- 想在项目里面集成,可是引用找不到 HOT 4
- BTC 钱包导出的私钥不正确 HOT 2
- 调用BTCSignTransaction成功 但广播失败 HOT 2
- master branch pod install error HOT 1
- mac os 10.15 pod install error HOT 4
- haha
- ss HOT 1
- 请问是否有支持BCH创建、导入、导出助记词私钥、交易的最新代码
- 请问是否有支持BCH创建、导入、导出助记词私钥、交易的最新代码
- Pod Error:No such module 'CoreBitcoin.libscrypt' in 'Scrypt.swift' file HOT 1
- 我想自定义创建一些其他的钱包地址,怎么创建呢,比如我想创建一个BCH钱包,该怎么操作
- 参数的含义
- pod 集成token-core-ios CryptoSwift版本冲突
- 只是想用私钥或者keystore,我新建一个identity,怎么将我的keystore和私钥导入? HOT 2
- 通过ETH私钥导入生成新的identity可以成功,BTC私钥导入就不成功。
- how about TRON
- 支持TRON嘛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from token-core-ios.