hash

package
v0.0.0-...-be3778f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Kind = "hash"

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Hash []byte `json:"hash"`
}

Identity is a receiver that encapsulates required dependencies.

func New

func New(hash []byte) *Identity

New is a factory function that returns an initialized Identity.

func (*Identity) Binary

func (i *Identity) Binary() []byte

Binary returns a unique key based on identity used within the SDK.

func (*Identity) Kind

func (*Identity) Kind() string

Kind returns the type of concrete implementation.

func (*Identity) Printable

func (i *Identity) Printable() string

Printable returns a unique key based on identity used within the SDK.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL