lib/WalletManager.php
/*
     * Generate a pair of random private keys
     *
     * @param string A hex string to be used as a seed (this should be random)
     *
     * @return array An array containing a private spend key and a deterministic view key
     */
Generate a pair of random private keys
@param string A hex string to be used as a seed (this should be random)

@return array An array containing a private spend key and a deterministic view key
Generate a pair of random private keys @param string A hex string to be used as a seed ( this should be random ) @return array An array containing a private spend key and a deterministic view key
public function gen_private_keys($seed)
    {
        $spendKey = $this->sc_reduce($seed);
        $viewKey = $this->derive_viewKey($spendKey);
        $result = array("spendKey" => $spendKey, "viewKey" => $viewKey);
        return $result;
    }
public function gen_private_keys ( $ seed ) { $ spendKey = $ this -> sc_reduce ( $ seed ) ; $ viewKey = $ this -> derive_viewKey ( $ spendKey ) ; $ result = array ( " spendKey " => $ spendKey , " viewKey " => $ viewKey ) ; return $ result ; }
Generate a pair of random private keys
 @param string A hex string to be used as a seed (this should be random)
Generate a pair of random private keys @param string A hex string to be used as a seed ( this should be random )