Replies: 1 comment 1 reply
-
Q1: The Q2: While in theory it's possible to send assets to an address created from a set of keys that belong to Bob without explicitly creating an address on Bob's
The concept of "belongs to her" is a bit tricky here... Because knowing a key exists and having an entry for it in the database is not the same as having the private key to be able to sign for it. And I think we don't yet fully differentiate between the two in all our APIs. I recently added the |
Beta Was this translation helpful? Give feedback.
-
I'm building a wallet on top of Taproot Assets Protocol as my side project. And I have 2 questions today.
Q1: Could you guys give me a short explanation of the
InternalKey
andScriptKey
on newing an address and their usage in TAP? I've already read Mastering Bitcoin and some BIPs but these 2 keys are not familiar to me.Q2: During newing a TAP addr, let's assume that Alice wants to send an asset to Bob. Can she do that without asking Bob to generate a new addr if she has Bob's
InternalKey
andScriptKey
?The reason I ask the Q1 is because I think only the person that owns
InternalKey
orScriptKey
of an addr can spend the assets sent to this addr.For Q2, I've done some tests and found out that when Alice creates an addr, for example of 100 CUST, from Bob's
InternalKey
-ScriptKey
and sends to this addr, all of the outputs (as I queried fromListUtxos
RPC) belong to her. However, she will not able to spend the output of above 100 CUST.So if I guess correctly, TAP's
ListUtxos
RPC or the function getting utxos on sending are getting the utxos that were sent to the addresses that Alice created before without checking if these utxos can be really spent by her.This is the error I got when trying to spend the similar ouput:
Beta Was this translation helpful? Give feedback.
All reactions