libs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIcon

func CheckIcon(err error)

func ConvertKeys

func ConvertKeys(recipientPubKey string, senderPubKey string, senderPrivKey string) (*X25519.PublicKey, *X25519.PublicKey, *X25519.PrivateKey, error)

func MakeImageResource

func MakeImageResource(name string, path string) (*fyne.StaticResource, error)

Types

type CertificateHandler

type CertificateHandler struct {
	Config
	UuidText      string
	SignatureText string
	SignerText    string
}

func (*CertificateHandler) GetCertificatePreview

func (certHandler *CertificateHandler) GetCertificatePreview() (string, error)

func (*CertificateHandler) RetrieveCertificate

func (certHandler *CertificateHandler) RetrieveCertificate() (string, error)

func (*CertificateHandler) SendCertificate

func (certHandler *CertificateHandler) SendCertificate() (*entityApi.TransactionStatus, error)

type Config

type Config struct {
	PrivKey        string
	ChainID        string
	CompanyChainID string
	ApiUrl         string
}

type DatabaseDAO

type DatabaseDAO struct {
	Db *sql.DB
}

func InitDb

func InitDb() DatabaseDAO

func (*DatabaseDAO) AddCertificateEntry

func (dao *DatabaseDAO) AddCertificateEntry(uuid string, signature string, signer string)

func (*DatabaseDAO) AddSecretEntry

func (dao *DatabaseDAO) AddSecretEntry(uuid string, recipientPrivateKey string)

func (*DatabaseDAO) GetSecretDecryptingKey

func (dao *DatabaseDAO) GetSecretDecryptingKey(uuid string) string

func (*DatabaseDAO) GetSignatureAndSigner

func (dao *DatabaseDAO) GetSignatureAndSigner(uuid string) ([]byte, []byte, error)

func (*DatabaseDAO) RemoveCertificate

func (dao *DatabaseDAO) RemoveCertificate(uuid string)

func (*DatabaseDAO) RemoveSecret

func (dao *DatabaseDAO) RemoveSecret(uuid string)

func (*DatabaseDAO) UpdateCertificateOptions

func (dao *DatabaseDAO) UpdateCertificateOptions() []string

func (*DatabaseDAO) UpdateSecretOptions

func (dao *DatabaseDAO) UpdateSecretOptions() []string

type SecretHandler

type SecretHandler struct {
	Config
	UuidText        string
	Content         []byte
	RecipientPubKey *X25519.PublicKey
	SenderPubKey    *X25519.PublicKey
	SenderPrivKey   *X25519.PrivateKey
}

func (*SecretHandler) GetSecretPreview

func (secHandler *SecretHandler) GetSecretPreview() (string, error)

func (*SecretHandler) SendSecret

func (secHandler *SecretHandler) SendSecret() (*entityApi.TransactionStatus, error)

Jump to

Keyboard shortcuts

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