You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today we can use the Universe tree and the gRPC/REST API as a source for issuance and transfer proofs. The main loop walks backwards from the transaction is received on chain, using the prev outpoints to look up the next leaf in the Universe trees:
returnnil, fmt.Errorf("failed to parse script key "+
"public key from Proof.PrevID: %w", err)
}
loc.ScriptKey=*scriptKeyPubKey
loc.AssetID=&prevID.ID
loc.OutPoint=&prevID.OutPoint
}
Each time we use the gRPC client to query for the proof. Instead, we should add a step right before that, that attempts to look in the local proof acrhive. This'll allow us to short circuit, as all assets with the same asset ID eventually have a common ancestor. Once we know about this ancestor, then we have the rest of the proof so we can exit early.
Steps To Completion
Pass in the proof archive into the UniverseRpcCourier. Use that local archive to query before making a network query to the universe.
The text was updated successfully, but these errors were encountered:
Today we can use the Universe tree and the gRPC/REST API as a source for issuance and transfer proofs. The main loop walks backwards from the transaction is received on chain, using the prev outpoints to look up the next leaf in the Universe trees:
taproot-assets/proof/courier.go
Lines 1045 to 1095 in a990fdf
Each time we use the gRPC client to query for the proof. Instead, we should add a step right before that, that attempts to look in the local proof acrhive. This'll allow us to short circuit, as all assets with the same asset ID eventually have a common ancestor. Once we know about this ancestor, then we have the rest of the proof so we can exit early.
Steps To Completion
UniverseRpcCourier
. Use that local archive to query before making a network query to the universe.The text was updated successfully, but these errors were encountered: