ipfs / js-ipns

Utilities for creating, parsing, and validating IPNS records
Other
80 stars 24 forks source link

Validator and validate code example do not work #315

Open dentropy opened 1 month ago

dentropy commented 1 month ago

Just run the following code and you will find the missing functions,

import * as ipns from 'ipns'
const validator = ipns.validator
console.log(validator)
console.log(Object.keys(ipns))

Result:

undefined
[
  'create',
  'createWithExpiration',
  'extractPublicKey',
  'getLocalKey',
  'marshal',
  'namespace',
  'namespaceLength',
  'peerIdFromRoutingKey',
  'peerIdToRoutingKey',
  'unmarshal'
]