identity

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrWrongDevice = constError("wrong TKey or different tkey-device-x25519 app")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

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

func NewIdentity

func NewIdentity(userSecret []byte, requireTouch bool) (*tkeyclient.UDI, *Identity, error)

func NewIdentityFromRawID

func NewIdentityFromRawID(rawID []byte) (*Identity, error)

func (*Identity) EncodeIdentity

func (id *Identity) EncodeIdentity(pluginName string) (string, error)

func (*Identity) EncodeRecipient

func (id *Identity) EncodeRecipient() (string, error)

func (*Identity) RequireTouch

func (id *Identity) RequireTouch() bool

func (*Identity) Unwrap

func (id *Identity) Unwrap(pubKey []byte, wrappedFileKey []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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