LoginSignup
1
0

More than 5 years have passed since last update.

【Laravel on PHP】NEMの公開鍵をアドレス化する。

Last updated at Posted at 2018-05-02

公開鍵を作るために
以下のURLを参考にやってみました。
https://tadajam.katari.be/DybkrUq3?_ab=2

サーバーの方で、APIを叩き、json_decodeまで終わらせました。そして、viewで編集しようと試みました。


<?php
    $hash = hash(“sha256”, $result[“data”][$i][“transaction”][“signer”]);
    $hash = hash(“ripemd160”, $hash);
    $hash = “0x68".$hash;
    $hash_5 = hash(“sha256”, $hash);
    $hash_6 = mb_strcut($hash_5, 0, 4);
    $hash = $hash.$hash_6;
    $hash = $this->app->bind(‘Base32\Base32’)
    echo $hash->base32_encode();
        ?>

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0