explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Implement new Tapd claim ownership API

Open straumat opened this issue 1 year ago • 1 comments

straumat avatar Mar 29 '24 21:03 straumat

From Lightning labs slack :

WIth the latest update, Alice can also provide a 32-byte challenge to ProveAssetOwnership, which is then required by the verifier side for VerifyAssetOwnership So if Bob wants to ask Alice to create a unique proof for an asset, the steps are: Bob generates a random 32byte challenge (name it c) Bob sends c to Alice Alice calls ProveAssetOwnership for the asset, providing c in the request (field name is Challenge) Alice sends proof to Bob Bob calls VerifyAssetOwnership providing the proof of Alice, plus the challenge c Here is an itest example too https://github.com/lightninglabs/taproot-assets/blob/main/itest/ownership_test.go 18 h 06 So now Bob can be sure that Alice did not "steal" this proof, as it is bound to the challenge he just generated

straumat avatar Sep 18 '24 12:09 straumat