PHPackages                             elcorp/umi-fork - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. elcorp/umi-fork

ActiveLibrary

elcorp/umi-fork
===============

UMI Core PHP Library fork

06PHP

Since Mar 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ElchinMustafaev/umi-fork)[ Packagist](https://packagist.org/packages/elcorp/umi-fork)[ RSS](/packages/elcorp-umi-fork/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

 [![UMI](https://camo.githubusercontent.com/cb17f493681efbd233668118dd7d88964e998109ad99d8eef1ab792bd5b7a3a6/68747470733a2f2f756d692d746f702e6769746875622e696f2f6c6f676f2e737667)](https://umi.top)
 UMI Core - PHP Library

=================================================================================================================================================================================================================================

[](#------umi-core---php-library----)

 [![travis](https://camo.githubusercontent.com/2b90feaf51606ffeaef65b1a0ef9aea359ea7b71a70e43bd24e39c63ade91e87/68747470733a2f2f7472617669732d63692e636f6d2f756d692d746f702f756d692d636f72652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/umi-top/umi-core-php) [![](https://camo.githubusercontent.com/680cc40291894030f153e9d9b7ef3492202589b2435add39e16eb02393b656df/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6263313063383565323930383466613561653361326236396137313231616336)](https://www.codacy.com/manual/umi-top/umi-core-php) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/e693f6c7483ec783078734765046aeef507d64ec9e9b192032d374341c10524a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756d692d746f702f756d692d636f72652d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/umi-top/umi-core-php/?branch=master) [![Coverage Status](https://camo.githubusercontent.com/0b248b80b1861eba02d6413e1de16652733f090fa8652e48a2d9afc0b89c3f92/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f756d692d746f702f756d692d636f72652d7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/umi-top/umi-core-php?branch=master) [![PSR-12](https://camo.githubusercontent.com/2ed04e118a262fbf5c70d87880ed8a58052a1f1a58c583abc16612181f99d087/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d5053522d2d31322d677265656e)](https://www.php-fig.org/psr/psr-12/) [![GitHub](https://camo.githubusercontent.com/eb57f0eeac7be4ddb0c3884eac9963c268b4d6ebcf0e3c1fe277e4de080ee4c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f756d692d746f702f756d692d636f72652d706870)](https://github.com/umi-top/umi-core-php/blob/master/LICENSE) [![Keybase PGP](https://camo.githubusercontent.com/7c97e3ae164b73e0f0569e15de80383d78ae07231b1acc78b0c0e6d1284d209c/68747470733a2f2f696d672e736869656c64732e696f2f6b6579626173652f7067702f756d69746f70)](https://keybase.io/umitop)
 [![GitHub release (latest SemVer)](https://camo.githubusercontent.com/33c2c06fb20fe208902445c37c0a09c2ebaea7ae38ce2910b9e8c793b3a22633/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f756d692d746f702f756d692d636f72652d7068703f736f72743d73656d766572)](https://github.com/umi-top/umi-core-php) [![Packagist Version](https://camo.githubusercontent.com/be0a4a9759c39c2a82738195ada9787f5d5b50fa3022619fd1fb0058d4f2f617/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756d692d746f702f756d692d636f72652d706870)](https://packagist.org/packages/umi-top/umi-core-php) [![PHP Version Support](https://camo.githubusercontent.com/712e5faad1c0d69390f17b88f6f3f6f12708003c5fe50ebddc271883ed34a288/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253230253345253344352e342d626c7565)](https://github.com/umi-top/umi-core-php) [![Packagist Downloads](https://camo.githubusercontent.com/2a8bfae8f6e22e0e43393e04d1f21e41075768cb5391e52c499df86f2941b53c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f756d692d746f702f756d692d636f72652d706870)](https://packagist.org/packages/umi-top/umi-core-php)

Оглавление
----------

[](#оглавление)

- [Введение](#%D0%B2%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5)
- [Установка](#%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0)
    - [Composer](#composer)
- [Примеры](#%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B)
    - [Мнемоники](#%D0%BC%D0%BD%D0%B5%D0%BC%D0%BE%D0%BD%D0%B8%D0%BA%D0%B8)
        - [Seed из мнемонической фразы](#seed-%D0%B8%D0%B7-%D0%BC%D0%BD%D0%B5%D0%BC%D0%BE%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B9-%D1%84%D1%80%D0%B0%D0%B7%D1%8B)
    - [Ключи](#%D0%BA%D0%BB%D1%8E%D1%87%D0%B8)
        - [Ключ из seed](#%D0%BA%D0%BB%D1%8E%D1%87-%D0%B8%D0%B7-seed)
        - [Подписать сообщение](#%D0%BF%D0%BE%D0%B4%D0%BF%D0%B8%D1%81%D0%B0%D1%82%D1%8C-%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D0%BD%D0%B8%D0%B5)
        - [Проверить подпись](#%D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%B8%D1%82%D1%8C-%D0%BF%D0%BE%D0%B4%D0%BF%D0%B8%D1%81%D1%8C)
    - [Адреса](#%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0)
        - [Адрес в формате Bech32](#%D0%B0%D0%B4%D1%80%D0%B5%D1%81-%D0%B2-%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B5-bech32)
        - [Адрес из приватного или публичного ключа](#%D0%B0%D0%B4%D1%80%D0%B5%D1%81-%D0%B8%D0%B7-%D0%BF%D1%80%D0%B8%D0%B2%D0%B0%D1%82%D0%BD%D0%BE%D0%B3%D0%BE-%D0%B8%D0%BB%D0%B8-%D0%BF%D1%83%D0%B1%D0%BB%D0%B8%D1%87%D0%BD%D0%BE%D0%B3%D0%BE-%D0%BA%D0%BB%D1%8E%D1%87%D0%B0)
        - [Префикс](#%D0%BF%D1%80%D0%B5%D1%84%D0%B8%D0%BA%D1%81)
    - [Транзакции](#%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B0%D0%BA%D1%86%D0%B8%D0%B8)
        - [Перевести монеты](#%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%B5%D1%81%D1%82%D0%B8-%D0%BC%D0%BE%D0%BD%D0%B5%D1%82%D1%8B)
        - [Создать структуру](#%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D1%82%D1%8C-%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D1%83)
        - [Обновить настройки структуры](#%D0%BE%D0%B1%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8-%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D1%8B)
        - [Установить адрес для начисления профита](#%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%B0%D0%B4%D1%80%D0%B5%D1%81-%D0%B4%D0%BB%D1%8F-%D0%BD%D0%B0%D1%87%D0%B8%D1%81%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F-%D0%BF%D1%80%D0%BE%D1%84%D0%B8%D1%82%D0%B0)
        - [Установить адрес для перевода комиссии](#%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%B0%D0%B4%D1%80%D0%B5%D1%81-%D0%B4%D0%BB%D1%8F-%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4%D0%B0-%D0%BA%D0%BE%D0%BC%D0%B8%D1%81%D1%81%D0%B8%D0%B8)
        - [Активировать транзитный адрес](#%D0%B0%D0%BA%D1%82%D0%B8%D0%B2%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C-%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B8%D1%82%D0%BD%D1%8B%D0%B9-%D0%B0%D0%B4%D1%80%D0%B5%D1%81)
        - [Деактивировать транзитный адрес](#%D0%B4%D0%B5%D0%B0%D0%BA%D1%82%D0%B8%D0%B2%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C-%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B8%D1%82%D0%BD%D1%8B%D0%B9-%D0%B0%D0%B4%D1%80%D0%B5%D1%81)
        - [Отправить транзакцию в сеть](#%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D1%8C-%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B0%D0%BA%D1%86%D0%B8%D1%8E-%D0%B2-%D1%81%D0%B5%D1%82%D1%8C)
- [Лицензия](#%D0%BB%D0%B8%D1%86%D0%B5%D0%BD%D0%B7%D0%B8%D1%8F)

Введение
--------

[](#введение)

Для работы библиотеки требуются 64-битная версия PHP &gt;= 5.4 и стандартное расширение [hash](https://www.php.net/manual/en/function.hash.php).

Установка
---------

[](#установка)

Библиотека опубликована в репозитории [Packagist](https://packagist.org) и может быть установлена с помощью менеджера зависимостей [Composer](https://getcomposer.org).

### Composer

[](#composer)

```
composer require umi-top/umi-core-php
```

Примеры
-------

[](#примеры)

### Мнемоники

[](#мнемоники)

UMI не накладывает никаких ограничений на способ генерации и хранения приватных ключей.
Для совместимости, рекомендуем использовать [bip39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).

#### Seed из мнемонической фразы

[](#seed-из-мнемонической-фразы)

Пример с использованием библиотеки [bitcoin-php](https://github.com/Bit-Wasp/bitcoin-php):

```
