Sha256: 60fb5c1c208ccd6f64d3bc85b982b656c24f02cf486b3b3c6f8bb9c554db53ff
Contents?: true
Size: 410 Bytes
Versions: 7
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Lightning module Onion module FailureMessages module InvalidOnionKey def to_payload [type_code, sha256_of_onion.htb.bytesize].pack('nn') + sha256_of_onion.htb end def self.load(payload) type_code, len, rest = payload.unpack('nnH*') new(type_code, rest[0..len * 2]) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems