Skip to content

Commit

Permalink
krypto.md: Description of input format. (#424)
Browse files Browse the repository at this point in the history
* krypto.md: Description of input format.

* krypto: formatting
  • Loading branch information
denis-bogdanas authored and ehildenb committed Aug 4, 2019
1 parent a47e4b2 commit 31446e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions krypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ module KRYPTO
- `ECDSARecover` takes a 32-character byte string of a message, v, r, s of the signed message and returns the 64-character public key used to sign the message.
See [this StackOverflow post](https://ethereum.stackexchange.com/questions/15766/what-does-v-r-s-in-eth-gettransactionbyhash-mean) for some information about v, r, and s.

In all functions above, input `String` is interpreted as byte array, e.g. it is NOT hex-encoded.

```k
syntax String ::= Keccak256 ( String ) [function, hook(KRYPTO.keccak256)]
| ECDSARecover ( String , Int , String , String ) [function, hook(KRYPTO.ecdsaRecover)]
Expand Down

0 comments on commit 31446e7

Please sign in to comment.