aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/secp256k1/secp256.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-09-28 17:19:23 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-11-30 20:24:04 +0800
commit27a50c8f4bc69f98e20db361859bfbb6cf371c00 (patch)
treea7440f35ed0940cb87d2b17b53177b05afaa51aa /crypto/secp256k1/secp256.go
parent66d47ced4892141cdc955856b9fce6e95bca0402 (diff)
downloaddexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar.gz
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar.bz2
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar.lz
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar.xz
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.tar.zst
dexon-27a50c8f4bc69f98e20db361859bfbb6cf371c00.zip
core/secp256k1: update libsecp256k1 Go wrapper and tests
Diffstat (limited to 'crypto/secp256k1/secp256.go')
-rw-r--r--crypto/secp256k1/secp256.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/secp256k1/secp256.go b/crypto/secp256k1/secp256.go
index 41a5608a5..7f26f307c 100644
--- a/crypto/secp256k1/secp256.go
+++ b/crypto/secp256k1/secp256.go
@@ -96,7 +96,7 @@ func GenerateKeyPair() ([]byte, []byte) {
var output_len C.size_t
- C.secp256k1_ec_pubkey_serialize( // always returns 1
+ _ = C.secp256k1_ec_pubkey_serialize( // always returns 1
context,
pubkey65_ptr,
&output_len,
@@ -163,7 +163,7 @@ func Sign(msg []byte, seckey []byte) ([]byte, error) {
sig_serialized_ptr := (*C.uchar)(unsafe.Pointer(&sig_serialized[0]))
var recid C.int
- C.secp256k1_ecdsa_recoverable_signature_serialize_compact(
+ _ = C.secp256k1_ecdsa_recoverable_signature_serialize_compact(
context,
sig_serialized_ptr, // 64 byte compact signature
&recid,