hip2-hns
v1.0.0
Published
Handshake specific implementation of [HIP2](https://hsd-dev.org/HIPs/proposals/0002/) with input and output validation.
Downloads
2
Readme
hip2-hns
Handshake specific implementation of HIP2 with input and output validation.
Usage
import hip2 from 'hip2-hns';
await hip2('iamfernando', { dns: ['203.28.246.143'] }); // hs1qshuyulxra3pqpwr40303t8pn79232zztuk4qgz
await hip2('hs1qshuyulxra3pqpwr40303t8pn79232zztuk4qgz'); // Error: "hs1qshuyulxra3pqpwr40303t8pn79232zztuk4qgz" is a valid address and can't be used as HIP2
await hip2('hs1qshuyulxra3pqpwr40303t8pn79232zztuk4qgz', { strict: false }); // hs1qshuyulxra3pqpwr40303t8pn79232zztuk4qgz