Comments (4)
Hi @Christewart, sorry for the delay in investigating this. This is a bug in sidechain-manipulation.py
.
It's an alpha consensus rule that any sidechain claim transactions have a locked sidechain output as input, then your address as output, follow immediately by a change output whose scriptPubKey is identical to the scriptPubKey of the original locked output. That is, you are "putting the change back where it came from".
In sidechain-manipulation.py:231
the change output is hardcoded to be the same as the alpha genesis output (which describes 21m coins with no corresponding locked Testnet output). However, the genesis output is not the only locked sidechain output; there are other outputs which correspond to coins users have locked when withdrawing from Alpha to Testnet.
So the bug you're seeing is that sidechain-manipulation.py
is trying to unlock some locked output created by some user (so it does not originate from the genesis output), then send the coins (a) to you, and (b) "back" to the genesis output.
So the script needs to be fixed to look at which output it's spending, and to use that.
cc @TheBlueMatt can I just have UTXOFinder
store its scriptpubkey then assign that to relock_scriptPubKey
on line 231?
from elements.
@Sarodh The secondScriptPubKeyHash
is just the hash of the secondScriptPubKey
.
secondScriptPubKey: OP_DROP 144 OP_LESSTHANOREQUAL
(from sidechain-manipulation.py)
In hex: 75029000a1
Sha256(Ripemd160(secondScriptPubKey)) == 9eac001049d5c38ece8996485418421f4a01e2d7
from elements.
Thanks @TomMcCabe
from elements.
peg-in system was overhauled
from elements.
Related Issues (20)
- issueasset: issuance is always blinded HOT 2
- RPC example or tutorial opcodes enabled by liquid HOT 1
- Write and sign custom transaction code HOT 2
- Can´t mint tokens HOT 1
- Can't enable coin control features HOT 5
- Given claim_script does not match the given Bitcoin transaction. HOT 9
- signmessage HOT 1
- Wallet migration fails with confidential transactions HOT 8
- wallet managed by elements-cli receives tx with tokens but doesn't process them (not in the locally parsed TX, not in the balance) HOT 2
- Received funds appear in listreceivedbyaddress, but are not taken into account for the wallet balance and cannot be transferred
- Support for Jade hardware wallet HOT 3
- Confidential peg-in transaction HOT 11
- Sending transactions with 0.01 instead of 0.1 sats/vbyte
- `bad optional access` error at startup HOT 5
- fuzz crash in coins.h
- Refund after next dynafed transition
- add multi-asset support to new `sendall` RPC
- Can't claim peg-in because of invoking getpeginaddress during initial sync
- I would like to issue asset into my wallet HOT 3
- elements-qt 23.2.2rc1 and master crash at shutdown on M1 macOS 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 elements.