Skip to content

Commit

Permalink
add PrivKey type
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed May 18, 2020
1 parent e49e2fa commit fb546d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ To cast a supertype ``bytes`` to them, a function of the type name must be expli
Sha256 s = Sha256(b'00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100');
Subtypes of ``int``
---------------------

* **PrivKey** - a private key type.

.. code-block:: solidity
PrivKey privKey = PrivKey(0x00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100);
``if`` statement
================
``if`` condition can be of type ``int`` and ``bytes``, besides ``bool``. They are implicitly converted to ``bool`` as in C and Javascript.
Expand Down

0 comments on commit fb546d1

Please sign in to comment.