@@ -747,61 +747,6 @@ type DiffEngine interface {
747
747
Close () error
748
748
}
749
749
750
- // Commitment is an on chain universe commitment. This includes the merkle
751
- // proof for a transaction which anchors the target universe root.
752
- type Commitment struct {
753
- // BlockHeight is the height of the block that the commitment is
754
- // contained within.
755
- BlockHeight uint32
756
-
757
- // BlockHeader is the block header that commits to the transaction.
758
- BlockHeader wire.BlockHeader
759
-
760
- // MerkleProof is a merkle proof for the above transaction that the
761
- // anchor output was included.
762
- MerkleProof * proof.TxMerkleProof
763
-
764
- // UniverseRoot is the full Universe root for this commitment.
765
- UniverseRoot mssmt.Node
766
- }
767
-
768
- // CommittedIssuanceProof couples together a Bitcoin level merkle proof
769
- // commitment with an issuance proof. This allows remote callers to verify that
770
- // their responses re actually committed to within the chain.
771
- type CommittedIssuanceProof struct {
772
- // ChainProof is the on chain proof that shows the Universe root has
773
- // been stamped in the chain.
774
- ChainProof * Commitment
775
-
776
- // TaprootAssetProof is a proof of new asset issuance.
777
- TaprootAssetProof * Proof
778
- }
779
-
780
- // ChainCommitter is used to commit a Universe backend in the chain.
781
- type ChainCommitter interface {
782
- // CommitUniverse takes a Universe and returns a new commitment to that
783
- // Universe in the main chain.
784
- CommitUniverse (universe BaseBackend ) (* Commitment , error )
785
- }
786
-
787
- // Canonical is an interface that allows a caller to query for the latest
788
- // canonical Universe information related to an asset.
789
- //
790
- // TODO(roasbeef): sync methods too, divide into read/write?
791
- type Canonical interface {
792
- BaseBackend
793
-
794
- // Query returns a fully proved response for the target base key.
795
- Query (context.Context , LeafKey ) (* CommittedIssuanceProof , error )
796
-
797
- // LatestCommitment returns the latest chain commitment.
798
- LatestCommitment () (* Commitment , error )
799
-
800
- // UpdateChainCommitment takes in a series of chain commitments and
801
- // updates the commitment on chain.
802
- UpdateChainCommitment (chainCommits ... ChainCommitter ) (* Commitment , error )
803
- }
804
-
805
750
// FederationLog is used to keep track of the set Universe servers that
806
751
// comprise our current federation. This'll be used by the AutoSyncer to
807
752
// periodically push and sync new proof events against the federation.
0 commit comments