export fields from lnid and add deserialization method

This commit is contained in:
Tadge Dryja
2016-01-19 00:05:02 -08:00
parent 26d9ae7f2b
commit dd2c2274c8
2 changed files with 85 additions and 8 deletions

View File

@ -144,7 +144,7 @@ out:
// 20-byte pkh.
var remoteId []byte
if addr.PubKey == nil {
remoteId = addr.Base58Addr.ScriptAddress()
remoteId = addr.Base58Adr.ScriptAddress()
} else {
remoteId = addr.PubKey.SerializeCompressed()
}