Giter Club home page Giter Club logo

Comments (7)

Wangmmx avatar Wangmmx commented on August 29, 2024 1

Finally solved this problem, closed the issue

from ckb-sdk-js.

ashchan avatar ashchan commented on August 29, 2024

Signing with multiple private keys requires constructing the tx and grouping inputs by the key, then signing each group. We're still writing a document (not specific to JavaScript sdk) which will explain this flow.

from ckb-sdk-js.

Wangmmx avatar Wangmmx commented on August 29, 2024

Signing with multiple private keys requires constructing the tx and grouping inputs by the key, then signing each group. We're still writing a document (not specific to JavaScript sdk) which will explain this flow.

Are you saying that you don't support it now ?or that the document is not complete now?

from ckb-sdk-js.

Wangmmx avatar Wangmmx commented on August 29, 2024

And is there any transaction that sending with multiple private keys successfully? I don't see it on CKB Explorer, thanks

from ckb-sdk-js.

ashchan avatar ashchan commented on August 29, 2024

Definitely. Our Neuron wallet almost always sign with multiple private keys (children key from the HD wallet). Please refer to the implementation at https://github.com/nervosnetwork/neuron/blob/develop/packages/neuron-wallet/src/services/wallets.ts#L348.

Regarding the document, no it's not complete yet. I'll publish it once it's done. That would be after the mainnet launch.

from ckb-sdk-js.

Wangmmx avatar Wangmmx commented on August 29, 2024

Definitely. Our Neuron wallet almost always sign with multiple private keys (children key from the HD wallet). Please refer to the implementation at https://github.com/nervosnetwork/neuron/blob/develop/packages/neuron-wallet/src/services/wallets.ts#L348.

Regarding the document, no it's not complete yet. I'll publish it once it's done. That would be after the mainnet launch.

Can I see a mock json txBody after signing with multiple private keys? I want to compare it with mine. I generated a tx but it falied to being broadcast

from ckb-sdk-js.

ashchan avatar ashchan commented on August 29, 2024

@Wangmmx Just FYI: https://github.com/nervosnetwork/ckb-system-scripts/wiki/How-to-sign-transaction

from ckb-sdk-js.

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.