holepunchto/hyperdht

allow offline signing

davidmarkclements opened this issue · 2 comments

accept opt.keypair.publicKey + opt.sig as an alternative to opts.keypair.publicKey + opts.keypair.secretKey

also

  • create a util function that exposes the data to be signed based on the inputs
  • expose a signing convenience function as well