mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
lnwire: export SerializeSigToWire and DeserializeSigFromWire
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
74322a99be
commit
ff4ca664e3
@@ -15,12 +15,12 @@ func TestSignatureSerializeDeserialize(t *testing.T) {
|
||||
// check for errors as well as check if the results are correct.
|
||||
signatureSerializeDeserialize := func(e btcec.Signature) error {
|
||||
var b [64]byte
|
||||
err := serializeSigToWire(&b, &e)
|
||||
err := SerializeSigToWire(&b, &e)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
var e2 *btcec.Signature
|
||||
err = deserializeSigFromWire(&e2, b)
|
||||
err = DeserializeSigFromWire(&e2, b)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user