diff --git a/dist/pigeon/bundle.rb b/dist/pigeon/bundle.rb index fd6f3de..0727976 100644 --- a/dist/pigeon/bundle.rb +++ b/dist/pigeon/bundle.rb @@ -4,7 +4,7 @@ module Pigeon s = Pigeon::Storage.current content = s .find_all(Pigeon::LocalIdentity.current.multihash) - .map { |multihash| s.find_message(multihash) } + .map { |multihash| s.read_message(multihash) } .sort_by(&:depth) .map { |message| message.render } .join(BUNDLE_MESSAGE_SEPARATOR) diff --git a/dist/pigeon/lexer.rb b/dist/pigeon/lexer.rb index 9860b2c..2185651 100644 --- a/dist/pigeon/lexer.rb +++ b/dist/pigeon/lexer.rb @@ -27,7 +27,7 @@ module Pigeon KIND = /kind #{ALPHANUMERICISH}\n/ BODY_ENTRY = /#{ALPHANUMERICISH}:#{ANY_VALUE}\n/ - FOOTER_ENTRY = /signature .*{87,88}\.sig\.ed25519\n?/ + FOOTER_ENTRY = /signature .*{103}\.sig\.ed25519\n?/ LEXER_STATES = [HEADER = :header, BODY = :body, FOOTER = :footer] diff --git a/dist/pigeon/message.rb b/dist/pigeon/message.rb index b34dcd0..a31a55c 100644 --- a/dist/pigeon/message.rb +++ b/dist/pigeon/message.rb @@ -46,7 +46,7 @@ module Pigeon end def save! - return store.find_message(multihash) if store.message?(multihash) + return store.read_message(multihash) if store.message?(multihash) calculate_signature verify_depth_prev_and_depth verify_signature diff --git a/dist/pigeon/storage.rb b/dist/pigeon/storage.rb index 6bdba39..1c1eb0f 100644 --- a/dist/pigeon/storage.rb +++ b/dist/pigeon/storage.rb @@ -37,7 +37,7 @@ module Pigeon end end - def find_message(multihash) + def read_message(multihash) read { store[MESG_NS].fetch(multihash) } end