diff options
author | Starfall <us@starfall.systems> | 2021-02-08 15:01:01 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-02-08 15:01:01 -0600 |
commit | 3693000bf6a94219e3cc4a29a6cb4ac51b78cf2a (patch) | |
tree | 5e0a9757d315ca3aafe4db1ce10d3c4d84769408 /spec/lib/activitypub/linked_data_signature_spec.rb | |
parent | ab4c09a7041050e4aa4b8333484e311f26a36b4a (diff) | |
parent | 4ed9576cd28abc033a094fed6babe9825014f1af (diff) |
Merge remote-tracking branch 'glitchsoc/main' into main
Diffstat (limited to 'spec/lib/activitypub/linked_data_signature_spec.rb')
-rw-r--r-- | spec/lib/activitypub/linked_data_signature_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/activitypub/linked_data_signature_spec.rb b/spec/lib/activitypub/linked_data_signature_spec.rb index 1f413eec9..2222c46fb 100644 --- a/spec/lib/activitypub/linked_data_signature_spec.rb +++ b/spec/lib/activitypub/linked_data_signature_spec.rb @@ -81,6 +81,6 @@ RSpec.describe ActivityPub::LinkedDataSignature do options_hash = Digest::SHA256.hexdigest(canonicalize(options.merge('@context' => ActivityPub::LinkedDataSignature::CONTEXT))) document_hash = Digest::SHA256.hexdigest(canonicalize(document)) to_be_verified = options_hash + document_hash - Base64.strict_encode64(from_account.keypair.sign(OpenSSL::Digest::SHA256.new, to_be_verified)) + Base64.strict_encode64(from_account.keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_verified)) end end |