lnwire: export SerializeSigToWire and DeserializeSigFromWire

This commit is contained in:
Johan T. Halseth authored and Olaoluwa Osuntokun committed 2017-09-19 12:05:58 -07:00
1 parent 74322a99be
commit ff4ca664e3
3 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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
}