models

package
v0.0.0-...-8d285ec Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptedMsg

type EncryptedMsg struct {
	K kyber.Point
	C kyber.Point
}

EncryptedMsg represents an encrypted message

- implements calypso.EncryptedMessage

func NewEncryptedMsg

func NewEncryptedMsg(k, c kyber.Point) *EncryptedMsg

NewEncryptedMsg creates a new encrypted message

func (EncryptedMsg) GetC

func (f EncryptedMsg) GetC() kyber.Point

GetC implements calypso.EncryptedMessage

func (EncryptedMsg) GetK

func (f EncryptedMsg) GetK() kyber.Point

GetK implements calypso.EncryptedMessage

type Identity

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

Identity represents an identity

- implements arc.Identity

func NewIdentity

func NewIdentity(id string) *Identity

NewIdentity creates a new identity

func (Identity) MarshalText

func (i Identity) MarshalText() ([]byte, error)

MarshalText implements arc.Identity

func (Identity) String

func (i Identity) String() string

String implements arc.Identity

Jump to

Keyboard shortcuts

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