mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
19 lines
321 B
Go
19 lines
321 B
Go
// Package dag provides DAG consensus functionality
|
|
package dag
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/luxfi/ids"
|
|
)
|
|
|
|
// Tx represents a transaction in the DAG
|
|
type Tx interface {
|
|
ID() ids.ID
|
|
ParentIDs() []ids.ID
|
|
Bytes() []byte
|
|
Verify(context.Context) error
|
|
Accept(context.Context) error
|
|
Reject(context.Context) error
|
|
}
|