PHP WebShell

Текущая директория: /opt/BitGoJS/modules/bitgo/test/v2/unit

Просмотр файла: internal.ts

import 'should';

import { bip32 } from '@bitgo/utxo-lib';
import { Util } from '@bitgo/sdk-core';

describe('Internal:', () => {
  describe('Util', function () {
    it('has working xpubToEthAddress', function () {
      const xpub = bip32.fromSeed(Buffer.alloc(32)).neutered().toBase58();
      Util.xpubToEthAddress(xpub).should.eql('0xeb317b9f2e0891d66c061ddc3f5ee7ed42d70a44');
    });
  });
});

Выполнить команду


Для локальной разработки. Не используйте в интернете!