ipfsutils

package
v0.0.0-...-4ca2c20 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSelfIDNotMatch = errors.New("~/self_id not matches the given key")
)

Functions

func ExtractByIndex

func ExtractByIndex(path string, empty_ok bool) (map[string][]byte, error)

ExtractByIndex gains messages in specific p2p session from IPFS gateway. Returns hash to message object. Doing this after self_id verified.

func Verify

func Verify(priv *ecdsa.PrivateKey, pubkey *ecdsa.PublicKey, gatewaySelf, gatewayTarget string) ([]string, error)

Verify verifies all messages on self and target IPFS gateway. Returns message hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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