Source code for bitshares.aio.message
# -*- coding: utf-8 -*-
from graphenecommon.aio.message import (
Message as GrapheneMessage,
InvalidMessageSignature,
)
from bitsharesbase.account import PublicKey
from .account import Account
from .instance import BlockchainInstance
from ..exceptions import (
InvalidMemoKeyException,
AccountDoesNotExistsException,
WrongMemoKey,
)
[docs]@BlockchainInstance.inject
class Message(GrapheneMessage):
MESSAGE_SPLIT = (
"-----BEGIN BITSHARES SIGNED MESSAGE-----",
"-----BEGIN META-----",
"-----BEGIN SIGNATURE-----",
"-----END BITSHARES SIGNED MESSAGE-----",
)
[docs] def define_classes(self):
self.account_class = Account
self.publickey_class = PublicKey