util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewPubKeyPair = ecies.NewKeyPair
View Source
var NewSignKeyPair = ed25519.NewKeyPair
View Source
var UnmarshalPri = ecies.UnmarshalPriKey
View Source
var UnmarshalPub = ecies.UnmarshalPubKey
View Source
var UnmarshalSign = ed25519.UnmarshalSignKey
View Source
var UnmarshalVerf = ed25519.UnmarshalVerfKey

Functions

func BaseDir added in v0.2.0

func BaseDir(mode, addr string) string

func Init

func Init()

func NewIpfs

func NewIpfs(hGen pv.HostGenerator, dirName string, save bool, bootstraps []peer.AddrInfo) (ipfs.Ipfs, error)

func NewStore added in v0.2.0

func NewStore(hGen pv.HostGenerator, stInfo [][2]string, dirName string, save bool, bootstraps []peer.AddrInfo, opts ...*crdt.StoreOpts) ([]crdt.IStore, error)

func ParseConfigAddr

func ParseConfigAddr(cfgAddr string) (string, string, error)

Types

type IPriKey added in v0.3.0

type IPriKey = ipub.IPriKey

type IPubKey added in v0.3.0

type IPubKey = ipub.IPubKey

type ISignKey added in v0.3.0

type ISignKey = isign.ISignKey

type IVerfKey added in v0.3.0

type IVerfKey = isign.IVerfKey

Jump to

Keyboard shortcuts

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