Giter Club home page Giter Club logo

Comments (11)

freehere107 avatar freehere107 commented on July 18, 2024

let signature = api::sign( client_shim, BigInt::from_hex(&sig_hash.le_hex_string()), &mk, BigInt::from(0), BigInt::from(address_derivation.pos), &self.private_share.id, );

from gotham-city.

omershlo avatar omershlo commented on July 18, 2024

hey @freehere107 , I am not sure I follows but since each signature uses a fresh randomness - signatures on the same message will look different but will still be valid. As long as you get signature as output it means that the signature is valid (because as part of the signing we do a verification).

Does this answer your question ?

from gotham-city.

freehere107 avatar freehere107 commented on July 18, 2024

OK,signature is valid.i try to boradcast .but i don't know what address to send this transaction.

from gotham-city.

omershlo avatar omershlo commented on July 18, 2024

We run on bitcoin testnet (can be changed to mainnet). if you want to send you need to specify the address to send to

from gotham-city.

freehere107 avatar freehere107 commented on July 18, 2024

how to specify the address to send to, i change this
let address_derivation = self .addresses_derivation_map .get(&transaction.from) .unwrap();
but always the same result

from gotham-city.

omershlo avatar omershlo commented on July 18, 2024

why do you want to do that?
if you want to receive to the wallet, just generate new address and send to it (./target/release/cli wallet -a).
If you want to send Gotham will assemble the txid you need for the tx. Do you need to assemble it yourself ?

from gotham-city.

freehere107 avatar freehere107 commented on July 18, 2024

I want to use the send method, but I am prompted to have no balance, but I have generated a wallet and recharged it, but I still have no balance. My print transaction found the address signed by the server and found that the address is not the one I generated. address. This makes me confused

from gotham-city.

omershlo avatar omershlo commented on July 18, 2024

did you charged the wallet with funds from testnet?
try generate new address, and send funds to it from: https://testnet-faucet.mempool.co/
wait for confirmation and check the balance. let me know if balance is zero/error

from gotham-city.

hackfisher avatar hackfisher commented on July 18, 2024

May I ask a question:

What if I signed the same message twice using same client part key, and got two sign_tx and the corresponding ec_recover'd signing addresses. Is it true that the two signing address(ec_recovered) should be equal?

from gotham-city.

omershlo avatar omershlo commented on July 18, 2024

@hackfisher In general this is true. Even if you sign on separate messages .

from gotham-city.

freehere107 avatar freehere107 commented on July 18, 2024

@omershlo OK,i fix it.thank you

from gotham-city.

Related Issues (17)

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.