Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ino Murko
    @ino_murko_twitter
    hi everyone! @hayesgm @ayrat555 are you guys still doing daily standups?
    Geoff Hayes
    @hayesgm
    Good to have you back Ino! It's been a little quiet around here.
    Ino Murko
    @ino_murko_twitter
    Hehe, yeah. Is Ayrat still on?
    Sameroom
    @sameroom-bot
    [Ayrat Badykov, POA Network] I'm working part-time on the project
    Ino Murko
    @ino_murko_twitter
    Cool, me as well! Wanna sync later today?
    Sameroom
    @sameroom-bot
    [Ayrat Badykov, POA Network] It would be great. Can we move a meeting one hour later?
    [Ayrat Badykov, POA Network] 7 pm moscow? or do you prefer another time?
    Ino Murko
    @ino_murko_twitter
    7pm Moscow is fine!
    Awesome! :)
    Sameroom
    @sameroom-bot
    [Ayrat Badykov, POA Network] great. what should we use? slack or hangout? the same link?
    Ino Murko
    @ino_murko_twitter
    ugh. I don’t have slack access anymore :) and I lost the hangout link. so If you can share it with me please
    Ayrat Badykov
    @ayrat555
    Ino Murko
    @ino_murko_twitter
    thanks
    Lakshman Sankar
    @lsankar4033

    hi all! I'm running into an issue when running bin/setup for the main mana repo:

    ...
    ===> Compiling keccakf1600
     C      decaf-utils.c
     C      keccakf1600_nif.c
     C      shake.c
     LD     keccakf1600.so
    Undefined symbols for architecture x86_64:
      "_enif_alloc_resource", referenced from:
          _keccakf1600_sha3_224_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_224_update_nif_2 in keccakf1600_nif.o
          _keccakf1600_sha3_224_final_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_256_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_256_update_nif_2 in keccakf1600_nif.o
          _keccakf1600_sha3_256_final_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_384_nif_1 in keccakf1600_nif.o
          ...
      "_enif_consume_timeslice", referenced from:
          _keccakf1600_sha3_224_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_224_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_512_nif_4 in keccakf1600_nif.o
          ...
      "_enif_get_resource", referenced from:
          _keccakf1600_sha3_224_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_224_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_512_nif_4 in keccakf1600_nif.o
          ...
    ...

    there are a few more missing symbols. I'm running erlang 21 on MacOS (installed erlang with brew). Has anyone seen this type of issue before?
    thanks in advance :)

    Ino Murko
    @ino_murko_twitter
    hey @lsankar4033 seems like you’re missing some dependencies. have you installed osx command line tools?
    Lakshman Sankar
    @lsankar4033
    yep!
    thanks for the quick reply
    Ino Murko
    @ino_murko_twitter
    can you do a quick test, just to see if the base stuff is there. run iex shell and run:
    :crypto.start()
    Lakshman Sankar
    @lsankar4033
    ➜  mana git:(master) iex
    Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
    
    Interactive Elixir (1.8.1) - press Ctrl+C to exit (type h() ENTER for help)
    iex(1)> :crypto.start()
    :ok
    Ino Murko
    @ino_murko_twitter
    thats good! have you tried running ./setup install_deps
    The setup is in bin/
    Lakshman Sankar
    @lsankar4033
    let me try
    oof, same issue when it gets to keccakf1600:
    ===> Compiling keccakf1600
     LD     keccakf1600.so
    Undefined symbols for architecture x86_64:
      "_enif_alloc_resource", referenced from:
          _keccakf1600_sha3_224_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_224_update_nif_2 in keccakf1600_nif.o
          _keccakf1600_sha3_224_final_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_256_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_256_update_nif_2 in keccakf1600_nif.o
          _keccakf1600_sha3_256_final_nif_1 in keccakf1600_nif.o
          _keccakf1600_sha3_384_nif_1 in keccakf1600_nif.o
          ...
      "_enif_consume_timeslice", referenced from:
          _keccakf1600_sha3_224_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_224_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_256_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_384_update_nif_4 in keccakf1600_nif.o
          _keccakf1600_sha3_512_nif_4 in keccakf1600_nif.o
          ...
    Ino Murko
    @ino_murko_twitter
    have you exported any flags, like LDFLAGS, CXXFLAGS or CFLAGS?
    Lakshman Sankar
    @lsankar4033
    as it turns out, i had withotu realizing it! and unsetting those seems to have done the trick :)
    thanks for bearing with me
    Ino Murko
    @ino_murko_twitter
    it was a wild guess anyhow :D
    Lakshman Sankar
    @lsankar4033
    much appreciated!
    Ino Murko
    @ino_murko_twitter
    but keccakf is very slim, so it shouldn’t be anything weird.
    are you planning to use mana or contribute?
    Lakshman Sankar
    @lsankar4033
    at this point just playing. i'm hoping to build some services that interact with eth and like using elixir, so figured i'd check it out
    Ino Murko
    @ino_murko_twitter
    Awesome. come back and share experience :)
    Lakshman Sankar
    @lsankar4033
    will do :)
    Lakshman Sankar
    @lsankar4033
    what's the proper way to sign some data with ExthCrypto so that the address can be recovered by ecrecover in a solidity contract?
    Ino Murko
    @ino_murko_twitter
    hey @ayrat555 exthereum/merkle_patricia_tree#16 could we get this in.
    Ayrat Badykov
    @ayrat555
    in mana we have a newer version. I think we should extract it from there
    Ino Murko
    @ino_murko_twitter
    Yeah, the problem is, there’s a dependency to some other project thats using it on a very basic level.
    thats why I wanted it
    Pawel Nowosielski
    @pnowosie
    Hello, ALL!
    I'm trying to implement EIP-712 structed hashing in Elixir.
    Question for solidity's abi.encodePacked - do you know Elixir implementation?
    In ex-abi this function is missing
    Geoff Hayes
    @hayesgm
    Hm good point, yes, this is currently missing.
    I didn't even know this existed.
    You can probably hobble it together with the existing ABI functions, yeah, it would be nice to build out
    Pawel Nowosielski
    @pnowosie
    @hayesgm thanks for the answer! I believe I figured it out, from the examples in solidity code. It’s applied to string or muliple binary values before hash is called on them. From the Elixir point of view one can pass either string itself or Enum.join() for many values. This suggest such function would be useless in Elixir - probably therefore it’s not implemented in ex-abi
    Pawel Nowosielski
    @pnowosie
    @lsankar4033 it depends on what kind of data to encode it the proper way. The proces is: first you need to encode data, then compute hash of this encoded data and then sign the hash. In the contract code you also need to encode & hash and then use ecrecover. You can consider to read the beginning of https://eips.ethereum.org/EIPS/eip-712
    Piers
    @piersmana_twitter
    Hi! I tried to set up mana on a fresh Fedora 30 install and am having the darndest time with rocksdb
    ===> Compiling rocksdb
    ===> erl_interface is missing. ERLANG_LIB_DIR_erl_interface and ERLANG_LIB_VER_erl_interface will not be added to the environment.
    ===> erl_interface is missing. ERLANG_LIB_DIR_erl_interface and ERLANG_LIB_VER_erl_interface will not be added to the environment.
    ===> erl_interface is missing. ERLANG_LIB_DIR_erl_interface and ERLANG_LIB_VER_erl_interface will not be added to the environment.
    -- Using OTP lib: /usr/lib64/erlang/lib - found
    -- Using erl_interface version: 
    -- Using erts version: erts-10.3.5.3
    -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) 
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    BZIP2_LIBRARY
        linked by target "erocksdb" in directory /home/piersmana/Projects/mana/deps/rocksdb/c_src
    ERLANG_EI_LIB
        linked by target "erocksdb" in directory /home/piersmana/Projects/mana/deps/rocksdb/c_src
    ERLANG_ERL_INTERFACE_LIB
        linked by target "erocksdb" in directory /home/piersmana/Projects/mana/deps/rocksdb/c_src
    
    -- Configuring incomplete, errors occurred!
    See also "/home/piersmana/Projects/mana/deps/rocksdb/_build/cmake/CMakeFiles/CMakeOutput.log".
    ===> Hook for compile failed!
    
    ** (Mix) Could not compile dependency :rocksdb, "/home/piersmana/.mix/rebar3 bare compile --paths "/home/piersmana/Projects/mana/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile rocksdb", update it with "mix deps.update rocksdb" or clean it with "mix deps.clean rocksdb"
    Figured I'd ask before I spend too much more time attempting to debug erlang stuff - I'm trying to broaden my horizons but ultimately am a build noob
    Geoff Hayes
    @hayesgm
    I'm not too certain-- but it might help to try and install rocksdb, since it might include some missing dependencies: https://github.com/facebook/rocksdb/blob/master/INSTALL.md