Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ package_dir =
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
setup_requires = pyscaffold>=3.2a0,<3.3a0
# Add here dependencies of your project (semicolon/line-separated), e.g.
install_requires =
install_requires =
coincurve; python_version<"3.11"
coincurve>=17.0.0; python_version>="3.11" # Technically, this should be >=18.0.0 but there is a conflict with eciespy
aiohttp>=3.8.3
eciespy; python_version<"3.11"
eciespy>=0.3.13; python_version>="3.11"
typing_extensions
typer
aleph-message~=0.3.1
aleph-message~=0.3.2
eth_account>=0.4.0
# Required to fix a dependency issue with parsimonious and Python3.11
eth_abi==4.0.0b2; python_version>="3.11"
Expand Down
2 changes: 2 additions & 0 deletions src/aleph/sdk/chains/nuls1.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def serialize(self, with_length=False):
return output

def verify(self, message):
if not self.pub_key:
raise ValueError("Missing public key ")
pub = PublicKey(self.pub_key)
message = VarInt(len(message)).encode() + message
# LOGGER.debug("Comparing with %r" % (MESSAGE_TEMPLATE.format(message).encode()))
Expand Down
4 changes: 0 additions & 4 deletions src/aleph/sdk/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Settings(BaseSettings):
REMOTE_CRYPTO_UNIX_SOCKET: Optional[str] = None
ADDRESS_TO_USE: Optional[str] = None

DEFAULT_CHANNEL: str = "TEST"
DEFAULT_RUNTIME_ID: str = (
"bd79839bf96e595a06da5ac0b6ba51dea6f7e2591bb913deccded04d831d29f4"
)
Expand All @@ -34,9 +33,6 @@ class Settings(BaseSettings):

CODE_USES_SQUASHFS: bool = which("mksquashfs") is not None # True if command exists

VM_URL_PATH = "https://aleph.sh/vm/{hash}"
VM_URL_HOST = "https://{hash_base32}.aleph.sh"

class Config:
env_prefix = "ALEPH_"
case_sensitive = False
Expand Down
2 changes: 1 addition & 1 deletion src/aleph/sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from enum import Enum
from typing import Dict, Protocol, TypeVar

__all__ = ("StorageEnum", "Account", "AccountFromPrivateKey")
__all__ = ("StorageEnum", "Account", "AccountFromPrivateKey", "GenericMessage")

from aleph_message.models import AlephMessage

Expand Down