rns-artifacts - Multi-crypto Resolver

Implementation of the Multi Chain Resolver described on RNSIP-03.

Usage

Resolving multichain

function async resolve (node, chain) {
  const chainAddr = await multiChainResolver.chainAddr(node, chain);
  return chainAddr;
}

Setting multichain reslolution

const node = namehash('rif.rsk');
const chain = '0x80000000'; // BTC
const addr = '1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX';

await multiChainResolver.setChainAddr(node, chain, addr);