Documentation ¶
Index ¶
- Constants
- Variables
- func CompareDatablocks(ours image.Image, theirs image.Image) bool
- func Embed(data string, key string, skin image.Image) (image.Image, error)
- func GenerateDatablock(data string, key string) (image.Image, error)
- func HasDatablock(theirs image.Image) bool
- func Verify(data string, key string, skin image.Image) (bool, error)
- type Associfier
Constants ¶
View Source
const ( DATABLOCK_WIDTH = 8 DATABLOCK_HEIGHT = 8 )
Variables ¶
View Source
var (
ERR_SKIN_TOO_SMALL = errors.New(`skin must be at least 8x8`)
)
View Source
var (
PRESENCE_PATTERN = []color.NRGBA{
{0, 0, 0, 255},
{30, 0, 0, 255},
{0, 30, 0, 255},
{0, 0, 30, 255},
{30, 30, 0, 255},
{0, 30, 30, 255},
{30, 0, 30, 255},
{30, 30, 30, 255},
}
)
Functions ¶
func HasDatablock ¶
Types ¶
type Associfier ¶
type Associfier struct {
// contains filtered or unexported fields
}
func NewAssocifier ¶
func NewAssocifier(key string) Associfier
Click to show internal directories.
Click to hide internal directories.