types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Name         string    `json:"name"`
	LastModified time.Time `json:"lastModified"`
	FileType     string    `json:"type"`
	Size         int64     `json:"size"`
}

type File

type File struct {
	Details Details
	// contains filtered or unexported fields
}

func NewFile

func NewFile(data []byte, details Details) *File

func (File) Buffer

func (f File) Buffer() *bytes.Buffer

func (File) Name

func (f File) Name() string

func (File) Read

func (f File) Read(p []byte) (n int, err error)

type Wallet

type Wallet interface {
	GetAddress() string
	GetPubKey() types.PubKey
	GetClientCtx() client.Context
	GetChainID() string
	FindPubKey(address string) (*ecies.PublicKey, error)
	AsymmetricDecrypt(toDecrypt string) ([]byte, error)
	AsymmetricEncrypt(toEncrypt []byte, pubKey *ecies.PublicKey) (string, error)
	GetECIESPubKey() *ecies.PublicKey
}

Jump to

Keyboard shortcuts

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