Comments (11)
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.
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.
OK,signature is valid.i try to boradcast .but i don't know what address to send this transaction.
from gotham-city.
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.
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.
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.
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.
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.
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.
@hackfisher In general this is true. Even if you sign on separate messages .
from gotham-city.
@omershlo OK,i fix it.thank you
from gotham-city.
Related Issues (17)
- Runtime comparison HOT 4
- Can I get the full private key? HOT 5
- Eliminate SerDes of PrivateShare and MasterKeys
- How do I get the master address and master key right after create the wallet HOT 4
- Could not send, "Negative output" HOT 24
- Enforce git-flow, PR and squash commit
- Cross Compile & Link Gotham Client and GMP for Android Architectures HOT 5
- feature has been removed HOT 1
- Zeroize version issue HOT 1
- Gotham goes real
- The security of client in gotham-city HOT 2
- I use rust toolchain [rustc 1.72.0-nightly (8b35c0bb0 2023-06-08)] to compile the work space, but error appears HOT 2
- [FEAT]: enable the client cli with v1.0.0
- [BUG]:build failed
- [FEAT]: port to gotham-engine all the http endpoints and make gotham-city depend on gotham engine
- Build Error due to conflicting versions of two_party_ecdsa crate HOT 1
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 gotham-city.