Define NodeAlias struct and Display impl
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Jun 2022 20:17:01 +0000 (15:17 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Jun 2022 21:20:07 +0000 (16:20 -0500)
commit21aff6f7016e9b9ae4cd21f7ce591dd2a5c39763
tree4206de6443dbc0a295f65cf3bade75add046d5ca
parent22dc96481be1ab2eb4ff5bf9074ced29095f4be8
Define NodeAlias struct and Display impl

Provide a wrapper struct for 32-byte node aliases, which implements
Display for printing. Support the UTF-8 character encoding, but replace
control characters and terminate at the first null character. Fall back
to ASCII if the byte sequence is an invalid encoding.
lightning/src/routing/gossip.rs