lnwire: export SerializeSigToWire and DeserializeSigFromWire

This commit is contained in:
Johan T. Halseth
2017-08-26 15:53:24 +02:00
committed by Olaoluwa Osuntokun
parent 74322a99be
commit ff4ca664e3
3 changed files with 8 additions and 8 deletions

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
}