Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The docs for libp2p's `func New` say: >If no peer identity is provided, it generates a random RSA 2048 key-pair and derives a new identity from it Maybe I'm misinterpreting the docs, but I've observed that the default is actually Ed25519: ```go node, err := libp2p.New() if err != nil { panic(err) } fmt.Printf("Peer ID key type: %s\n", node.Peerstore().PrivKey(node.ID()).Type()) ``` Which prints "Peer ID key type: Ed25519". This is further supported by the [Peer Id spec](/~https://github.com/libp2p/specs/blob/d2106f43e878ae4c3a1c6465a7c329835290fe22/peer-ids/peer-ids.md?plain=1#L119): >Implementations MUST support Ed25519. Implementations SHOULD support RSA… This commit updates the function docs to express that the default is Ed25519, not RSA.
- Loading branch information