Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
27103544
Topic
2657742
Board
Development & Technical Discussion
Re: Why are pubkeys used in HTLCs instead of pubkey hashes?
by
pebwindkraft
on
28/12/2017, 14:47:39 UTC
Quote from: colatkinson on December 28, 2017, 11:21:32 AM
Wow, I'm an idiot.
that doesn't make you an idiot - au contraire, mon ami!
With a P2PKH you have roughly 227 bytes per tx, but when you use the full public key (compressed or uncompressed), it get's a bit longer. A good summary was here:
https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending-legacy-non-segwit-p2pkh-p2sh
And yes, multisig and CSV/CLTV or any smart contracts increase the size. And then of course segwit, decreasing size :-)