mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
afd8b84706
Our original wrapper code had two parts. One taken from a third party repository (who took it from upstream Go) licensed under BSD-3. The second written by Jeff, Felix and Gustav, licensed under LGPL. This made this package problematic to use from the outside. With the agreement of the original copyright holders, this commit changes the license of the LGPL portions of the code to BSD-3: --- I agree changing from LGPL to a BSD style license. Jeff --- Hey guys, My preference would be to relicense to GNUBL, but I'm also OK with BSD. Cheers, Gustav --- Felix Lange (fjl): I would approve anything that makes our licensing less complicated ---
22 lines
616 B
Go
22 lines
616 B
Go
// Copyright 2015 Jeffrey Wilcke, Felix Lange, Gustav Simonsson. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be found in
|
|
// the LICENSE file.
|
|
|
|
package secp256k1
|
|
|
|
import "C"
|
|
import "unsafe"
|
|
|
|
// Callbacks for converting libsecp256k1 internal faults into
|
|
// recoverable Go panics.
|
|
|
|
//export secp256k1GoPanicIllegal
|
|
func secp256k1GoPanicIllegal(msg *C.char, data unsafe.Pointer) {
|
|
panic("illegal argument: " + C.GoString(msg))
|
|
}
|
|
|
|
//export secp256k1GoPanicError
|
|
func secp256k1GoPanicError(msg *C.char, data unsafe.Pointer) {
|
|
panic("internal error: " + C.GoString(msg))
|
|
}
|