]> git.bitcoin.ninja Git - rust-lightning/commit
Drop byte_utils in favor of native `to/from_be_bytes` methods
authorMatt Corallo <git@bluematt.me>
Fri, 28 May 2021 01:40:22 +0000 (01:40 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 29 May 2021 19:25:12 +0000 (19:25 +0000)
commit80e91e5f9afb1475abaf24425aa9e466453d6470
treec24411437b1237c74ac12e0d2687b019c4c35787
parentd5144a114b7ded7554d4aede4766067cf63f8806
Drop byte_utils in favor of native `to/from_be_bytes` methods

Now that our MSRV supports the native methods, we have no need
for the helpers anymore. Because LLVM was already matching our
byte_utils methods as byteswap functions, this should have no
impact on generated (optimzied) code.

This removes most of the byte_utils usage, though some remains to
keep the patch size reasonable.
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_channel_encryptor.rs
lightning/src/ln/wire.rs
lightning/src/util/byte_utils.rs
lightning/src/util/chacha20.rs
lightning/src/util/poly1305.rs
lightning/src/util/ser.rs