From d8556b80bcc46f4568d6125abd2a5685d0adafea Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 25 Jun 2020 14:30:53 +0300 Subject: [PATCH] interop: fix key recovery functions documentation Follow 7d786fac79b430b4ba4a53c6c934d276afc6d1fc update. --- pkg/interop/crypto/crypto.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/interop/crypto/crypto.go b/pkg/interop/crypto/crypto.go index 02fce7c5a..db842ad67 100644 --- a/pkg/interop/crypto/crypto.go +++ b/pkg/interop/crypto/crypto.go @@ -35,8 +35,9 @@ func VerifySignature(msg []byte, sig []byte, pub []byte) bool { // given message hash using Secp256k1 elliptic curve. Flag isEven denotes Y's // least significant bit in decompression algorithm. The return value is byte // array representation of the public key which is either empty (if it's not -// possible to recover key) or contains 32 bytes in BE for X point (in case of -// success). This function uses Neo.Cryptography.Secp256k1Recover syscall. +// possible to recover key) or contains 64 bytes with X and Y coordinates (both +// 32-byte in BE format). This function uses Neo.Cryptography.Secp256k1Recover +// syscall. func Secp256k1Recover(r []byte, s []byte, messageHash []byte, isEven bool) []byte { return nil } @@ -45,8 +46,9 @@ func Secp256k1Recover(r []byte, s []byte, messageHash []byte, isEven bool) []byt // given message hash using Secp256r1 elliptic curve. Flag isEven denotes Y's // least significant bit in decompression algorithm. The return value is byte // array representation of the public key which is either empty (if it's not -// possible to recover key) or contains 32 bytes in BE for X point (in case of -// success). This function uses Neo.Cryptography.Secp256r1Recover syscall. +// possible to recover key) or contains 64 bytes with X and Y coordinates (both +// 32-byte in BE format). This function uses Neo.Cryptography.Secp256r1Recover +// syscall. func Secp256r1Recover(r []byte, s []byte, messageHash []byte, isEven bool) []byte { return nil }