Cargo Features

libp2p-identity has no features set by default.

[dependencies]
libp2p-identity = { version = "0.2.10", features = ["secp256k1", "ecdsa", "rsa", "ed25519", "peerid", "rand", "serde"] }
secp256k1

Enables asn1_der, hkdf, libsecp256k1, sha2, and zeroize

Affects libp2p-identity::secp256k1

ecdsa

Enables hkdf, p256, sec1, sha2, and zeroize

Affects libp2p-identity::ecdsa

rsa

Enables asn1_der, rand, ring, and zeroize

Affects libp2p-identity::rsa

ed25519

Enables ed25519-dalek, hkdf, sha2, and zeroize

Affects libp2p-identity::ed25519

peerid

Enables bs58, hkdf, multihash, sha2, and thiserror ^1.0

rand

Enables rand, rand_core of optional ed25519-dalek

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework