identification

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SEPARATOR_HEX ...
	SEPARATOR_HEX = "003b" // Unicode semi-colon character: ";"
)

Separators should be used as their binary value, ie. passed through utils.Must(utils.FromHex()).

Variables

This section is empty.

Functions

This section is empty.

Types

type Footprint

type Footprint string

Footprint ...

func BuildFootprint

func BuildFootprint(beneficiaryID, emitterID model.Hash, c channel.Channel, dataOrNormHashSrc string, isData bool) (f Footprint, err error)

BuildFootprint ...

func ToFootprint

func ToFootprint(bytes []byte) Footprint

ToFootprint ...

func (Footprint) Bytes

func (f Footprint) Bytes() []byte

Bytes ...

func (Footprint) IsEmpty added in v1.3.2

func (f Footprint) IsEmpty() bool

IsEmpty ...

func (Footprint) IsValid

func (f Footprint) IsValid() bool

IsValid ...

func (Footprint) NonEmpty

func (f Footprint) NonEmpty() bool

NonEmpty ...

func (Footprint) String

func (f Footprint) String() string

String ...

type Identification

type Identification struct {
	ID         model.Ciphered `json:"id"`
	Checker    model.Ciphered `json:"checker"`
	Depositary model.Hash     `json:"depositary,omitempty"`
}

Identification ...

type Identifications

type Identifications struct {
	Random      int            `json:"rand"`
	Beneficiary Identification `json:"beneficiary,omitempty"`
	Emitter     Identification `json:"emitter,omitempty"`
	Footprint   Footprint      `json:"footprint,omitempty"`
}

Identifications ...

Jump to

Keyboard shortcuts

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