Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多签交易 generateMultiEd25519SignatureShard 出错 #40

Closed
zhanghongfei opened this issue Feb 16, 2022 · 1 comment
Closed

多签交易 generateMultiEd25519SignatureShard 出错 #40

zhanghongfei opened this issue Feb 16, 2022 · 1 comment

Comments

@zhanghongfei
Copy link
Contributor

starcoin.js 版本 1.8.0

通过 utils.multiSign.generateMultiEd25519KeyShard 获取多签 shardAccount

然后签名交易时 utils.multiSign.generateMultiEd25519SignatureShard(shardAccount, rawUserTransaction);

报错:

node_modules/@starcoin/starcoin/dist/starcoin.js:8024
    return Promise.resolve(Promise.all(Object.keys(multiEd25519KeyShard.private_keys).map(function (k) {
                                              ^
TypeError: Cannot convert undefined or null to object`

console 输出 shardAccount.private_keys 是 undefined

参照的是 https://github.com/starcoinorg/starcoin.js/blob/v1.8.0/src/utils/multi-sign.spec.ts 中的 first multi sign

@zhanghongfei
Copy link
Contributor Author

这个是我调用错了,现在没问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant