func FingerprintTriple(t *protocol.Triple) ([]byte, error) {
	data, err := t.Marshal()
	if err != nil {
		return nil, err
	}
	sum := sha1.Sum(data)
	return sum[:], nil
}
FingerprintTriple generates a SHA-1 hash of the triple.
package crypto
import (
	"crypto/sha1"
	"github.com/degdb/degdb/protocol"
)