Closed TAdev0 closed 2 months ago
Can I take this issue
Hey @PavitraAgarwal21! Thanks for showing interest. We've created an application for you to contribute to Raito - Bitcoin ZK Client. Go check it out on OnlyDust!
Assigned @PavitraAgarwal21
You have to implement Encode
for Transaction
, TxIn
, TxOut
, and OutPoint
pls feel free to ask any questions!
@lana-shanghai can we use the alexandria library
@lana-shanghai can we use the alexandria library
Which method do you need from Alexandria?
@lana-shanghai can we use the alexandria library
Why do you need it? For structs you need custom encodings. I would take a look at how it is done in pure Rust. You can reuse Alexandria of course, but in this context it doesn't have what you need imo
I'm exploring an alternative approach to implementing compact encoding, which typically relies on bit-shifting operations like shr and shl
I'm exploring an alternative approach to implementing compact encoding, which typically relies on bit-shifting operations like shr and shl
There are shl
and shr
in utils
Hey I couldn't find a to_little_endian function. Can we create one to simplify compact size encoding and transaction serialization?
Hey I couldn't find a to_little_endian function. Can we create one to simplify compact size encoding and transaction serialization?
You can use append_word_rev
to extend output buffer with a LE integer
hi @PavitraAgarwal21 , whats up with this issue?
able to make the draft PR soon
@PavitraAgarwal21 we need to merge this, I'm reassigning the task (your contribution still counts though it's partial)
77 introduced
Encode
trait and implemented it forSpan<T>
andByteArray
types. We also need to implement it for some structs that need it