lib/lightning/onion.rb in lightning-onion-0.1.0 vs lib/lightning/onion.rb in lightning-onion-0.2.0
- old
+ new
@@ -1,14 +1,19 @@
# frozen_string_literal: true
require 'lightning/onion/version'
-require 'rbnacl'
+require 'algebrick'
require 'bitcoin'
+require 'rbnacl'
+require 'lightning/utils/string'
+
module Lightning
module Onion
autoload :ChaCha20, 'lightning/onion/chacha20'
+ autoload :ErrorPacket, 'lightning/onion/error_packet'
+ autoload :FailureMessages, 'lightning/onion/failure_messages'
autoload :HopData, 'lightning/onion/hop_data'
autoload :PerHop, 'lightning/onion/per_hop'
autoload :Packet, 'lightning/onion/packet'
autoload :Sphinx, 'lightning/onion/sphinx'
end