Module: Trx::Signature

Extended by:
Signature
Included in:
Signature
Defined in:
lib/trx/signature.rb

Defined Under Namespace

Classes: SignatureError

Constant Summary collapse

PREFIX_BYTE =
"\x19".freeze

Instance Method Summary collapse

Instance Method Details

#prefix_message(message) ⇒ Object



10
11
12
# File 'lib/trx/signature.rb', line 10

def prefix_message(message)
  "#{PREFIX_BYTE}Tron Signed Message:\n#{message.size}#{message}"
end