summaryrefslogtreecommitdiff
path: root/crypto/secp256k1/dummy.go
blob: 7c86a7f42a5c12b795a0464cc888b8da758222f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build dummy

// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the crypto/secp256k1/libsecp256k1/include/secp256k1.h file to be vendored.
//
// This Go file imports the c directory where there is another dummy.go file which
// is the second part of this workaround.
//
// These two files combined make it so `go mod vendor` behaves correctly.
//
// See this issue for reference: https://github.com/golang/go/issues/26366

package secp256k1

import (
	_ "github.com/algorand/go-algorand/crypto/secp256k1/libsecp256k1/include"
	_ "github.com/algorand/go-algorand/crypto/secp256k1/libsecp256k1/src"
	_ "github.com/algorand/go-algorand/crypto/secp256k1/libsecp256k1/src/modules/recovery"
)