コード例 #1
0
    // Test the function to generate public address from private key
    public void testRegenerateAddress()
    {
        string privateKey = "0xb5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7";
        string address    = VerifyKeys.regeneratePublicAddress(privateKey);

        Debug.Log("Your public address is: " + address);
    }
コード例 #2
0
ファイル: DideryTests.cs プロジェクト: jaywgraves/seedQuest
    // Test the function to generate public address from private key
    public int[] testRegenerateAddress()
    {
        int[] passed = new int[2];
        passed[1] = 1;

        string privateKey   = "0xb5b1870957d373ef0eeffecc6e4812c0fd08f554b37b233526acc331bf1544f7";
        string addressCheck = "0x12890D2cce102216644c59daE5baed380d84830c";
        string address      = VerifyKeys.regeneratePublicAddress(privateKey);

        //Debug.Log("Your public address is: " + address);

        if (address == addressCheck)
        {
            passed[0] = 1;
        }
        else
        {
            Debug.Log("testRegenerateAddress() failed.");
        }

        return(passed);
    }