Giter VIP home page Giter VIP logo

Comments (7)

ashchan avatar ashchan commented on May 27, 2024

测试用例用了较小的参数以加快运行速度。
Release 模式会快一些。Identity 创建时要生成三种不同的钱包,iPhone 7上10秒上下,大致属于可接受范围。或者可以象测试案例一下,修改参数:

https://github.com/consenlabs/token-core-ios/blob/master/Tests/TestCase.swift#L50

from token-core-ios.

linKnowEasy avatar linKnowEasy commented on May 27, 2024

感谢回复. 删除了创建 Identity 初始化默认生成的 ETHBTC 钱包代码后. 速度大概在 4 秒左右

from token-core-ios.

linKnowEasy avatar linKnowEasy commented on May 27, 2024

@ashchan 方便的话. 能问下

EOSTransaction(
        data: "c578065b93aec6a7c811000000000100a6823403ea3055000000572d3ccdcd01000000602a48b37400000000a8ed323225000000602a48b374208410425c95b1ca80969800000000000453595300000000046d656d6f00",
        publicKeys: ["EOS5SxZMjhKiXsmjxac8HBx56wWdZV1sCLZESh3ys1rzbMn4FUumU"],
        chainID: TestData.eosChainID
      )

data 是怎么生成的嘛, 看了 eosjs 的源码. 好像是一个结构体, 调用了 fcbuffer 的方法. 得到一个 16进制字符串.
我想问下. iOS 的操作是不是 transaction json 字典直接转 字符串 . 然后 调用 tk_toHexString 方法.生成16进制数据. 得到的结果就是所需要的 data

from token-core-ios.

ashchan avatar ashchan commented on May 27, 2024

@linKnowEasy 这部分我不是太了解,token-core 部分没有做处理。请 @XuNeal 看看该怎么构建 data。

from token-core-ios.

linKnowEasy avatar linKnowEasy commented on May 27, 2024

@ashchan �感谢回复. 我自己再研究下

from token-core-ios.

0xWWLG avatar 0xWWLG commented on May 27, 2024

@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 avatar linKnowEasy commented on May 27, 2024

@simondaigogogo
https://blog.csdn.net/akai9898/article/details/83447788
参考这个系列
其实是把交易数据发到链上. 进行序列化. 打包
过去的有点久了. 只能帮到这里了

from token-core-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.