compression

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressData

func CompressData(input string) (string, error)

func CompressEncryptString

func CompressEncryptString(input string, key []byte, iv []byte) (string, error)

func DecompressData

func DecompressData(input string) (string, error)

func DecryptDecompressString

func DecryptDecompressString(input string, key []byte, iv []byte) (string, error)

func MakePermsBlock

func MakePermsBlock(base string, standardPerms StandardPerms, walletRef types.Wallet) (user string, perms string, err error)

func ReadFileTreeEntry

func ReadFileTreeEntry(owner string, rawPath string, walletRef types.Wallet) ([]byte, error)

func SaveFiletreeEntry

func SaveFiletreeEntry(toAddress string, rawPath string, rawTarget string, rawContents any, walletRef types.Wallet) (sdk.Msg, error)

Types

type BasePerms

type BasePerms struct {
	TrackingNumber string
	Key            []byte
	Iv             []byte
}

type EditorsViewers

type EditorsViewers map[string]string

type MsgPartialPostFileBundle

type MsgPartialPostFileBundle struct {
	Creator        string // just the users address (might rework to be the same as account)
	Account        string // the hashed (uuid + user account) (becomes owner)
	HashParent     string // merkled parent
	HashChild      string // hashed child
	Contents       string // contents
	Viewers        string // stringify IEditorsViewers
	Editors        string // stringify IEditorsViewers
	TrackingNumber string // uuid
}

type StandardPerms

type StandardPerms struct {
	BasePerms BasePerms
	PubKey    *ecies.PublicKey
	Usr       string
}

Jump to

Keyboard shortcuts

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