models

package
v0.0.0-...-82e522f Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	DB *db.DB `json:"-"`

	CardId              string `json:"card_id"`
	Host                string `json:"host"`
	Port                string `json:"port"`
	CardKey             []byte `json:"-"`
	PubCardKey          []byte `json:"-"`
	BasePaymentMacaroon []byte `json:"-"`
	SumPubDASCardKey    []byte `json:"-"`
}

func (*Card) FindOrCreateCard

func (c *Card) FindOrCreateCard() (*Card, error)

func (*Card) GenerateBasePaymentMacaroon

func (c *Card) GenerateBasePaymentMacaroon() ([]byte, error)

func (*Card) GenerateSymmetricKey

func (c *Card) GenerateSymmetricKey() ([]byte, error)

func (Card) GetCardId

func (c Card) GetCardId() string

func (Card) GetHost

func (c Card) GetHost() string

func (Card) GetPort

func (c Card) GetPort() string

func (*Card) GrpcReponse

func (c *Card) GrpcReponse() (*proto.CardResponse, error)

func (*Card) RegisterCardInDAS

func (c *Card) RegisterCardInDAS() ([]*secp256k1.PublicKey, error)

Jump to

Keyboard shortcuts

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