github.com/annchain/OG@v0.0.9/protocol/verifier.go (about) 1 package protocol 2 3 import "github.com/annchain/OG/og/types" 4 5 // Verifier defines interface to validate a tx. 6 // There may be lots of rules for a tx to be valid across the project 7 // such as Consensus(Annsensus), Graph structure(DAG), Tx format(mining), etc 8 type Verifier interface { 9 Verify(t types.Txi) bool 10 Name() string 11 String() string 12 Independent() bool 13 }