From 71f29c1f9f8366bffb1ec15fc2cf32de9a24dfb1 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 18 May 2020 10:58:27 +0300 Subject: [PATCH] interop/crypto: update documentation --- pkg/interop/crypto/crypto.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/interop/crypto/crypto.go b/pkg/interop/crypto/crypto.go index dfcab6a5d..fa2d394f6 100644 --- a/pkg/interop/crypto/crypto.go +++ b/pkg/interop/crypto/crypto.go @@ -1,14 +1,15 @@ +/* +Package crypto provides an interface to cryptographic syscalls. +*/ package crypto -// Package crypto provides function signatures that can be used inside -// smart contracts that are written in the neo-go framework. - -// SHA256 computes the sha256 hash of b. +// SHA256 computes SHA256 hash of b. It uses `Neo.Crypto.SHA256` syscall. func SHA256(b []byte) []byte { return nil } -// ECDsaVerify checks that sig is msg's signature with pub. +// ECDsaVerify checks that sig is correct msg's signature for a given pub +// (serialized public key). It uses `Neo.Crypto.ECDsaVerify` syscall. func ECDsaVerify(msg []byte, pub []byte, sig []byte) bool { return false }