Pages:
Author

Topic: How to assemble this type of pay to pubkey hash transaction ? - page 2. (Read 310 times)

member
Activity: 285
Merit: 27
Ah, these two pages might be of interest to you: https://coinb.in/#newTransaction

https://coinb.in/#newTransaction

I think you might need to get the riepmd160 hash from your computer and convert it into base58 unless you want to pay to public key instaed (I thought p2pk is still supported though I could be completely wrong).
Nope. I’ve only the address, not the public key…
legendary
Activity: 3444
Merit: 10558
I think you might need to get the riepmd160 hash from your computer and convert it into base58 unless you want to pay to public key instaed (I thought p2pk is still supported though I could be completely wrong).

if you have the address (base58) just opening it in blockchain.com explorer will show you both the address and its hash160 and the conversion itself is a very easy one using the base58 decode function that exists in all libraries.
as for P2PK, it is an standard transaction still.

get type: https://github.com/bitcoin/bitcoin/blob/2068f089c8b7b90eb4557d3f67ea0f0ed2059a23/src/script/standard.cpp#L131-L135
doesn't consider non-standard: https://github.com/bitcoin/bitcoin/blob/2068f089c8b7b90eb4557d3f67ea0f0ed2059a23/src/policy/policy.cpp#L57-L78
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Ah, these two pages might be of interest to you: https://coinb.in/#newTransaction

https://coinb.in/#newTransaction

I think you might need to get the riepmd160 hash from your computer and convert it into base58 unless you want to pay to public key instaed (I thought p2pk is still supported though I could be completely wrong).
member
Activity: 285
Merit: 27
Do you have any ideas as to the platform you are using with this? At least an os or something. Are you trying to do all of this without a wallet and just bare cli instructions also?


I’d like to install nothing. Which means I’d prefer a web service. Otherwise Windows or Linux is Ok.
Also, yes I’d like to do this from a Wallet or a private key as Text. And as result, I don’t want to perform signing an utxo selection manually. I mean automatically like with a normal transaction as only the output needs to be manual.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Do you have any ideas as to the platform you are using with this? At least an os or something. Are you trying to do all of this without a wallet and just bare cli instructions also?

member
Activity: 285
Merit: 27
I’d like to perform a transaction like this…
Code:
 CHECKLOCKTIMEVERIFY DROP DUP HASH160  EQUALVERIFY CHECKSIG
Which brings many questions :
— How to encode
Code:
for setting the timing as a block height ?
— How to convert an address to a pubkeyHash ?
— How to assemble this into bytecode the network can understand ?
— How to automatically select utxo ?
— How to publish the resulting transaction to Bitcoin testnet ?
Pages:
Jump to: