domain

package
v0.0.0-...-5b00bd7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invite

type Invite struct {
	// contains filtered or unexported fields
}

func MustNewInvite

func MustNewInvite(
	seed SecretKeySeed,
	numberOfUses *int,
	validUntil *time.Time,
) *Invite

func NewInvite

func NewInvite(
	seed SecretKeySeed,
	numberOfUses *int,
	validUntil *time.Time,
) (*Invite, error)

func NewInviteFromHistory

func NewInviteFromHistory(
	seed SecretKeySeed,
	numberOfUses *int,
	validUntil *time.Time,
) (*Invite, error)

func (*Invite) Identity

func (i *Invite) Identity() identity.Private

func (*Invite) Redeem

func (i *Invite) Redeem(publicIdentity identity.Public, currentTime time.Time) error

func (*Invite) RemainingUses

func (i *Invite) RemainingUses() (int, bool)

func (*Invite) Seed

func (i *Invite) Seed() SecretKeySeed

func (*Invite) ValidUntil

func (i *Invite) ValidUntil() (time.Time, bool)

type SecretKeySeed

type SecretKeySeed struct {
	// contains filtered or unexported fields
}

func MustNewSecretKeySeed

func MustNewSecretKeySeed() SecretKeySeed

func MustNewSecretKeySeedFromBytes

func MustNewSecretKeySeedFromBytes(seed []byte) SecretKeySeed

func NewSecretKeySeed

func NewSecretKeySeed() (SecretKeySeed, error)

func NewSecretKeySeedFromBytes

func NewSecretKeySeedFromBytes(seed []byte) (SecretKeySeed, error)

func (SecretKeySeed) Bytes

func (s SecretKeySeed) Bytes() []byte

func (SecretKeySeed) IsZero

func (s SecretKeySeed) IsZero() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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