Categorygithub.com/protocol/go-libp2p-crypto
modulepackage
2.0.1+incompatible
Repository: https://github.com/protocol/go-libp2p-crypto.git
Documentation: pkg.go.dev

# README

go-libp2p-crypto

standard-readme compliant GoDoc Coverage Status Build Status

Various cryptographic utilities used by ipfs

Table of Contents

Install

go get github.com/libp2p/go-libp2p-crypto

Usage

Go to https://godoc.org/github.com/libp2p/go-libp2p-crypto.

Contribute

Feel free to join in. All welcome. Open an issue!

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to libp2p are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

Want to hack on IPFS?

License

MIT © 2016 Jeromy Johnson

# Packages

No description provided by the author
No description provided by the author

# Functions

ConfigDecodeKey decodes from b64 (for config file), and unmarshals.
ConfigEncodeKey encodes to b64 (for config file), and marshals.
No description provided by the author
Generates an ephemeral public key and returns a function that will compute the shared secret key.
No description provided by the author
Generates a keypair of the given type and bitsize.
No description provided by the author
KeyEqual checks whether two.
Generates a set of keys for each party by stretching the shared key.
MarshalPrivateKey converts a key object into its protobuf serialized form.
MarshalPublicKey converts a public key object into a protobuf serialized public key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnmarshalPrivateKey converts a protobuf serialized private key into its representative object.
UnmarshalPublicKey converts a protobuf serialized public key into its representative object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Key represents a crypto key that can be compared to another key.
PrivKey represents a private key that can be used to generate a public key, sign data, and decrypt data that was encrypted with a public key.
No description provided by the author

# Type aliases

Given a public key, generates the shared key.
PrivKeyUnmarshaller is a func that creates a PrivKey from a given slice of bytes.
PubKeyUnmarshaller is a func that creates a PubKey from a given slice of bytes.
No description provided by the author
No description provided by the author