Skip to content

PSK format unclear when using Config programatically #640

@adzialocha

Description

@adzialocha

libp2p PSK's need to be formatted like that:

format!("/key/swarm/psk/1.0.0/\n/base16/\n{}", pre_shared_secret)
    .parse()
    .expect("Invalid Pre-Shared Key"),

.. this is not communicated clearly to users of the API, so we either 1) inform them that this is the required format or 2) offer an interface which does it automatically

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions