Skip to content

Commit

Permalink
Add comments on hash160
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Aug 7, 2019
1 parent b3f3966 commit c05c709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ Math

Hashing
-------
* ``Ripemd160 ripemd160(bytes bytes)``
* ``Sha1 sha1(bytes bytes)``
* ``Sha256 sha256(bytes bytes)``
* ``Ripemd160 hash160(bytes bytes)``
* ``Sha256 hash256(bytes bytes)``
* ``Ripemd160 ripemd160(bytes b)``
* ``Sha1 sha1(bytes b)``
* ``Sha256 sha256(bytes b)``
* ``Ripemd160 hash160(bytes b)``

ripemd160(sha256(b))

Signature Verification
----------------------
Expand Down
1 change: 1 addition & 0 deletions docs/p2pkh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Pay to Public Key Hash
Ripemd160 pubKeyHash;
constructor() {
// type casting bytes literal to Ripemd160 explicitly
pubKeyHash = Ripemd160(0x16475707a0c893698c82eb8d177a8164c0aa1e72);
}
Expand Down

0 comments on commit c05c709

Please sign in to comment.