7
votes
Accepted
Why can a MultiSig transaction fail on too many signers?
Signatures verification consume significant CPU resources. Of course, using a dozen of signitures for each submitted transaction won't result in the network congestion, however it can slow down ledger ...
7
votes
Accepted
Storing Secret Key for Smart Contracts
Generally speaking, if you're owning all the accounts and everyone trusts you then I'd suggest adding your own private keys to the accounts instead of taking theirs.
If you add your own key that is ...
6
votes
Accepted
hash(x) signer in lightning network
A hash(x) signature has no dependence on the transaction itself. As such, it is only a "signer" in the sense that it adds signing weight to a transaction. Once anyone has seen the corresponding hash ...
6
votes
Accepted
Why is SHA256 a signature type option for a multisig transaction?
SHA-256 hash signer type is used for Hash(x) alternate signature type. Here is how it works:
You pick a secret x - there are no restrictions on the value of x but for security reasons it should be a ...
5
votes
Accepted
Pre-authorized Transaction
So after some exploration of pre-authorized transactions, I have written a medium post on my findings and an example use case here.
Yes, the basic approach is as follows:
Create the two pre-...
4
votes
Accepted
How multisignature in a transaction can be implemented?
You can do it the way you mentioned (sequential collection), and it is probably the most straightforward way, but one cool thing about multisig is that the only thing that's signed is the hash of the ...
3
votes
Why is SHA256 a signature type option for a multisig transaction?
The SHA256 signature is one of the alternate signature types. You can safely use a public key of any Stellar account as a signer with a Set Options operation.
Once you add the additional signer ...
3
votes
Accepted
Do tokens created through Stellar map one-to-one?
No.
New tokens on Stellar are created through adding a trustline with a Change Trust operation. You can set up as many trustlines as you want so long as you fulfil the minimum account balance (...
3
votes
Error in submitting the multisig transaction
The field result_xdr decodes to txBadSeq indicating that you've got a bad sequence number on that transaction.
3
votes
Muliti Signature with hash(x) in goLang SDK
It looks like the SignatureHint for hash(x) in your transaction is invalid. Signature hint for hash(x) is the 4 last bytes of the hash, not the preimage. Fix required around:
Hint: xdr.SignatureHint(...
2
votes
Messaging over Stellar - Is that right to do?
I can't speak for the SDF, but since you are asking about this, you probably already have guessed that this is not intended functionality. As such, I wouldn't rely on this behavior being there forever ...
2
votes
MultiSignature doubts
There is no difference, practically.
No, because you can consume sequence numbers at low threshold just by using the source account.
2
votes
Accepted
Dynamic collection of signatures
Currently it’s done completely off network - you need a way to share the transaction with the other parties and collect signatures. Several wallets and products do their own multisig coordination, and ...
2
votes
Accepted
Not able to sign the transaction
tx_bad_seq error means that current source account sequence doesn't match the sequence specified in the transaction itself. Tx sequence should be equal to account sequence + 1 to pass the verification....
2
votes
Accepted
Can't change Low Threshold to 0 in set options
It's possible, but you'll need one more Stellar account for this. Account QCHU (original account) will be unable to pay tx fees until you change the low threshold back to 0.
Create one more Stellar ...
2
votes
Accepted
Mutiple opearations in single transaction
You can put multiple operations for different accounts (identified by the 'source' parameter in each operation) into the same transaction. If one operation fails then all operations will fail. Instead ...
1
vote
SHA 256 Hash signing - key "XABDL..."
The "XABDL..." address you see is encoded, you can learn how to encode and decode it through SEP-23, you can also click here to view the code implementation.
The following is an example ...
1
vote
Accepted
Non-blocking multi-sign of transaction
This is possible. Something like the following steps would help you..
(I took this directly from the JS SDK documentation)
Use TransactionBuilder to build a new transaction.
Make sure to set a long ...
1
vote
Accepted
How to enable transaction fees with multi-sig?
Yes, exactly. That's the essence of the idea.
To transfer the asset, user wallet software creates the transaction with 2 operations: transfer per se and bank fee.
That's right. As an alternative, ...
1
vote
Why can a MultiSig transaction fail on too many signers?
My best guess: To clear any doubt about who exactly is in charge of a transaction. It would not make a technical difference if a 2-of-3 transaction is signed by [A,B], [B,C], [A,C] or [A,B,C] and even ...
1
vote
Accepted
Why do transactions sent by a channel account do not appear in the operations history for the source account?
when you get the operations for an account (e.g /accounts/{multi_sig_account_id}/operations) it doesn't show the operations from the transaction submitted using the channel account.
I guess it's ...
1
vote
Multi-sign transaction is not working
You are getting an error because of a bad sequence number. I know this because I decoded response.getResultXdr(). Here are some things you should know:
When you call sourceAccount = server.accounts()....
1
vote
Sharing transaction to more than one co- signers to get sign
As far as i know You need to send the XDR one by one after each signer signs it. Or else you can decode the XDR that send by signers and get the signing part separately and integrate with you existing ...
1
vote
1
vote
Accepted
preAuthTx - matching transactions
As per the tutorial "Signers of this type are automatically removed
from the account when a matching transaction is properly applied".
What exactly is matching transaction ? Does that mean ...
1
vote
Storing Secret Key for Smart Contracts
If you can avoid taking the secret key from the user it will reduce your liability and the user will be likely to trust your application or service.
SEP-0007 introduces a custom URI Scheme web+...
1
vote
Alternate signature - hash(x)
Which sha256 implementation are you using? Both sha.js (bundled with JavaScript StellarSDK) and native node implementation do not require padding.
1
vote
Accepted
Error in submitting the multisig transaction
(I'll start anew here)
4 issues spotted:
Issue 1
I tried at Laboratory with doing a simple "Payment" from {alice_public_key} to a {second_public_addr}.
Signed with and submitted this ...
1
vote
Accepted
How to create multisig address from multiple seeds?
Not familiar with the Python SDK, but here is the basic idea:
Overview
Let's create a multi-signature account between two parties, Alice and Bob. This will be a 2-of-2 multi-signature account, ...
1
vote
op_bad_signer error when adding sha256 hash signer on Stellar private network
I found solutions by myself. After create Stellar Private Network, We must execute command to upgrade protocolversion to 9.
$ stellar-core -c 'upgrades?mode=set&upgradetime=2018-01-31T20:00:00Z&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
multi-sig × 35transactions × 9
accounts × 6
stellar-sdk × 5
stellar-laboratory × 5
signer × 4
assets × 3
security × 3
issuing × 3
stellar-core × 2
horizon × 2
javascript-sdk × 2
xlm × 2
set-options × 2
channel × 2
java-sdk × 1
payments × 1
token × 1
operations × 1
trustline × 1
testnet × 1
fees × 1
private-network × 1
go-sdk × 1
sequence-number × 1