From 31446e75df84c55e30b756272fd20fd850ed1709 Mon Sep 17 00:00:00 2001 From: Denis Bogdanas Date: Sun, 4 Aug 2019 22:05:46 +0300 Subject: [PATCH] krypto.md: Description of input format. (#424) * krypto.md: Description of input format. * krypto: formatting --- krypto.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/krypto.md b/krypto.md index 178fe57c7c..bfe6380a01 100644 --- a/krypto.md +++ b/krypto.md @@ -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)]