Import an existing IPNS record into the local store without publishing it.
The record is validated and stored so this node serves it on a GET, but it
is not broadcast to the routers. A newly imported record (for a key with no
existing upkeep policy) is not automatically republished; call republish
with an upkeep policy to start keeping it alive.
Overwrites an older record already stored under this key, or rejects with
RecordObsoleteError if the stored record is newer. Importing never changes
the key's upkeep metadata, so a key that already has an upkeep policy keeps
it and continues to be republished automatically.
Optionaloptions: AbortOptionsCreates and publishes an IPNS record that will resolve the passed value signed by a key stored in the libp2p keychain under the passed key name.
If the key does not exist, a new Ed25519 key will be created. To use a different key types, ensure the key is created and stored in the keychain before invoking this method.
It is possible to create a recursive IPNS record by passing:
/ipns/Qmfoo)Optionaloptions: PublishOptionsRepublish the record already in the local store, setting its upkeep policy.
Sets the record's upkeep policy to options.upkeep (default rebroadcast)
so the background republisher keeps it available on the routers.
Optionaloptions: RepublishOptionsAccepts a multihash of a public key, a libp2p-key CID containing the
multihash of a public key, or an IPNS name in it's string representation
and recursively resolves IPNS records until a non-recursive record is found
(e.g. the value can be parsed as a string that does not start with
/ipns/).
Optionaloptions: IPNSResolveOptionsStop automatically republishing an IPNS record
By default this removes only the republishing metadata, keeping the record
in the datastore so it is still served until it expires. Pass
removeRecord: true to also delete the record so the node stops serving it.
If a key name is passed, the key remains in the keychain.
Optionaloptions: UnpublishOptions
Configured routing subsystems used to publish/resolve IPNS names