w3name
    Preparing search index...

    Class Revision

    A representation of a IPNS record that may be initial or revised.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get ttl(): undefined | bigint

      TTL in nanoseconds

      Returns undefined | bigint

    • get validity(): string

      RFC3339 date string.

      Returns string

    Methods

    • Decodes a Revision from a binary representation.

      Parameters

      • bytes: Uint8Array

        a Uint8Array containing a binary encoding of a Revision, as produced by #encode.

      Returns Revision

      a Revision object

      if bytes does not contain a valid encoded Revision

    • Encodes a Revision to a binary representation and returns it as a Uint8Array.

      Note: if revision.name is a WritableName then signing key data will be lost. i.e. the private key is not encoded.

      Parameters

      Returns Uint8Array