Comments (6)
And use the clone TokenCore can use the func WalletManager.importFromKeystore, but when I pod the sdk into my project , the func WalletManager.importFromKeystore doesn't work !
Then debug and find the difference:
public static var currentIdentity: Identity? {
set(newIdentity) {
_currentIdentity = newIdentity //the clone one can execute this code
}
get {
if _currentIdentity == nil {
_currentIdentity = storage.tryLoadIdentity() //but the sdk pod into my project execute this code
}
return _currentIdentity
}
}
Printing description of newIdentity:
▿ Optional
▿ some : <Identity: 0x7f9acab0cc20>
(lldb) po newIdentity
error: :3:1: error: use of unresolved identifier 'newIdentity'
newIdentity
pleae tell me what should I do to solve that problem ??
from token-core-ios.
And use the clone TokenCore can use the func WalletManager.importFromKeystore, but when I pod the sdk into my project , the func WalletManager.importFromKeystore doesn't work !
Then debug and find the difference:
public static var currentIdentity: Identity? {
set(newIdentity) {
_currentIdentity = newIdentity //the clone one can execute this code
}
get {
if _currentIdentity == nil {
_currentIdentity = storage.tryLoadIdentity() //but the sdk pod into my project execute this code
}
return _currentIdentity
}
}
please tell me what should I do to solve that problem ??
from token-core-ios.
Hey @Li-Qun
- TokenCore is follow the V3 Keystore format, the keystore standard of Ethereum, which the address is not start with '0x'.
- We have do the full test on ETC.
- We are working on you third question
from token-core-ios.
@ XuNeal 小哥哥 我知道我们都会说汉语了,“ETH 不是ETC。。。。。”
1.针对你回答的第一个问题,没有解决我的问题,在clone 的sdk 项目里, 如果keystore 中带了 0x开头的地址,sdk 是不识别的,我该怎么处理这个问题呢???
重点是imtoken app 中经过测试,imtoken 自己生成的keystore 是不带0x的,但是导入是带0x开头也可以正常交易,并且再查看keystore时候也是带0x开头的,为啥这个TokenCore 当且仅当不带0x开头才行 是吗?否者 导入的wallt 就是nil(难道要我识别一下用户导入的keystore...转换一下。。。这是我当前能想到的方法并且十分土。。。)
2.做了全面测测试? ETC ???===》ETH
3.Pod 下来的sdk方法不能像clone 项目中那样正常使用,期待你们的解决谢谢。waiting 至此,使用你们的SDK进度完全停滞,期待你们能解决这个问题。
from token-core-ios.
- 你可以判断一下如果地址是0x开头的去掉0x就可以了。不会有任何影响。其他所有人也是这么实现的。
- 实在不好意思第二条是typo。我们没在ETC上做过测试,只在ETH上做过测试。
- 呃呃,你能不能先直接使用源码导入的项目。最近公司比较忙
from token-core-ios.
该问题已经长时间没有回复,我先关掉了
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.