-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Implement txid
function
#44
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@maciejka just understood that txid in each input it the txid of the tx that generated this input... my bad |
@maciejka @m-kus ok so i udpated the PR without using will work on tests now. I'm not serializing everything to an array of u32 because it doesnt seem to be the best option here. I dont know actually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
txid
function #13Here is a first draft for the implementation of
TxId
function.@maciejka i'm not sure the TxId we obtain with this function would be the same as references client implementation, because content of
Inputs
andOutputs
doesn't seem to be the same.Tbh i'm not entirely clear about how Inputs work.
When looking at this :
https://learnmeabitcoin.com/technical/transaction/input/
we can see that all inputs of a transaction include the TxID , but the TxID itselfs is calculated using (among other elements) the inputs data. Its a bit confusing