libp2p
    Preparing search index...

    Function publicKeyFromProtobuf

    • Converts a protobuf serialized public key into its representative object.

      For RSA public keys optionally pass the multihash digest of the public key if it is known. If the digest is omitted it will be calculated which can be expensive.

      For other key types the digest option is ignored.

      Parameters

      Returns PublicKey