module DiasporaFederation::Entities::AccountMigration::Signable
AccountMigration::Signable
is a module that encapsulates basic signature generation/verification flow for AccountMigration
entity.
It is possible that implementation of diaspora* protocol requires to compute the signature for the AccountMigration
entity without instantiating the entity. In this case this module may be useful.
Public Instance Methods
signature_data()
click to toggle source
@see DiasporaFederation::Entities::Signable#signature_data
# File lib/diaspora_federation/entities/account_migration/signable.rb, line 20 def signature_data unique_migration_descriptor end
unique_migration_descriptor()
click to toggle source
@return [String] string which is uniquely represents migration occasion
# File lib/diaspora_federation/entities/account_migration/signable.rb, line 15 def unique_migration_descriptor "AccountMigration:#{old_identity}:#{new_identity}" end