doc: Fix RFC6979 signature size in readme file

This commit is contained in:
alexvanin 2020-03-02 13:38:38 +03:00
parent 5ba9a8ffc6
commit a508496829

View file

@ -40,12 +40,12 @@ err := crypto.Verify(&sk.PublicKey, signature, message)
### RFC6979 Sign / Verify bytes using PK / SK
```
// Sign returns signature (slice of 65 bytes) of SK for passed message (slice of bytes),
// Sign returns signature (slice of 64 bytes) of SK for passed message (slice of bytes),
// or error, if something went wrong:
signature, err := crypto.SignRFC6979(sk, message)
// Verify returns error message if PK is empty or
// passed wrong signature (slice of 65 bytes) for message (slice of bytes),
// passed wrong signature (slice of 64 bytes) for message (slice of bytes),
err := crypto.VerifyRFC6979(&sk.PublicKey, signature, message)
```