]> 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>
Tue, 1 Jun 2021 15:47:01 +0000 (15:47 +0000)
commit615419d5255157bf394a4f281279711133e17552
treee9647e4fb5220606deafa9bc6bb7f0e04ec30958
parent08ecb53915018b34b89e089d0517cadcd542522b
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