Skip to content

Instantly share code, notes, and snippets.

@masonforest
Created April 23, 2018 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masonforest/642599d920153f958b8a407758108f40 to your computer and use it in GitHub Desktop.
Save masonforest/642599d920153f958b8a407758108f40 to your computer and use it in GitHub Desktop.
ex_wire test failure
Compiling 45 files (.ex)
Generated ex_wire app
.
07:27:00.261 [warn] Message code `0x99` not implemented
.....
07:27:00.339 [debug] [Network] Sending EIP8 Handshake to 1.2.3.4
.
07:27:00.367 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
.....................
07:27:00.523 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
07:27:00.536 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
07:27:00.543 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
1) test recover public key from signature (ExWire.CryptoTest)
test/ex_wire/crypto_test.exs:5
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)
code: {signature, _r, _s, recovery_id} = ExthCrypto.Signature.sign_digest("hi mom", ExthCrypto.Test.private_key(:key_a))
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact("hi mom", <<94, 217, 126, 139, 193, 247, 132, 35, 174, 8, 191, 12, 133, 229, 115, 237, 78, 81, 160, 114, 73, 118, 207, 206, 98, 114, 27, 62, 25, 29, 219, 206>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
test/ex_wire/crypto_test.exs:6: (test)
..........
07:27:00.566 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
2) doctest ExWire.Crypto.node_id/1 (8) (ExWire.CryptoTest)
test/ex_wire/crypto_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ec_pubkey_create/2 is undefined (module :libsecp256k1 is not available)"
code: ExWire.Crypto.node_id(<<1::256>>)
stacktrace:
(libsecp256k1) :libsecp256k1.ec_pubkey_create(<<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1>>, :uncompressed)
(exth_crypto) lib/signature/signature.ex:32: ExthCrypto.Signature.get_public_key/1
(ex_wire) lib/ex_wire/crypto.ex:31: ExWire.Crypto.node_id/1
(for doctest at) lib/ex_wire/crypto.ex:19: (test)
.
07:27:00.588 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
3) test handshake auth eip 8 - 2 (HandshakeTest)
test/ex_wire/handshake/handshake_test.exs:83
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_recover_compact/4 is undefined (module :libsecp256k1 is not available)
code: {:ok, auth_msg, <<>>} = Handshake.read_auth_msg(auth, secret, "1.2.3.4")
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_recover_compact(<<83, 183, 201, 134, 14, 117, 240, 83, 143, 34, 168, 222, 106, 159, 3, 139, 45, 92, 77, 200, 102, 181, 55, 103, 186, 130, 169, 140, 10, 199, 189, 48>>, <<41, 156, 166, 172, 253, 53, 227, 215, 45, 139, 163, 209, 226, 182, 11, 85, 97, 213, 175, 82, 24, 235, 91, 193, 130, 4, 87, 105, 235, 66, 38, 145, 10, 48, 26, 202, 227, 179, 105, 255, 252, 74, 72, 153, 214, 176, 37, 49, 232, 159, ...>>, :uncompressed, 0)
(exth_crypto) lib/signature/signature.ex:110: ExthCrypto.Signature.recover/3
(ex_wire) lib/ex_wire/handshake/struct/auth_msg_v4.ex:66: ExWire.Handshake.Struct.AuthMsgV4.set_remote_ephemeral_public_key/2
(ex_wire) lib/ex_wire/handshake/handshake.ex:65: ExWire.Handshake.read_auth_msg/3
test/ex_wire/handshake/handshake_test.exs:100: (test)
4) doctest ExWire.Crypto.node_id/1 (9) (ExWire.CryptoTest)
test/ex_wire/crypto_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ec_pubkey_create/2 is undefined (module :libsecp256k1 is not available)"
code: ExWire.Crypto.node_id(<<1>>)
stacktrace:
(libsecp256k1) :libsecp256k1.ec_pubkey_create(<<1>>, :uncompressed)
(exth_crypto) lib/signature/signature.ex:32: ExthCrypto.Signature.get_public_key/1
(ex_wire) lib/ex_wire/crypto.ex:31: ExWire.Crypto.node_id/1
(for doctest at) lib/ex_wire/crypto.ex:26: (test)
......
07:27:00.674 [debug] [Packet] Peer sent 1 header(s)
...
07:27:00.684 [debug] [Packet] Disconnecting due to no matching peer caps ([])
....
07:27:00.718 [warn] Message code `0x63` not implemented
..................
07:27:00.733 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
5) doctest ExWire.Network.send/3 (7) (ExWire.NetworkTest)
test/ex_wire/network_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: message = %ExWire.Message.Pong{
to: %ExWire.Struct.Endpoint{ip: [1, 2, 3, 4], tcp_port: 5, udp_port: nil},
hash: <<2>>,
timestamp: 3,
}
ExWire.Network.send(message, self(), %ExWire.Struct.Endpoint{ip: <<1, 2, 3, 4>>, udp_port: 5})
receive do m -> m end
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<76, 165, 72, 135, 87, 74, 160, 163, 166, 81, 12, 216, 35, 108, 11, 55, 242, 241, 126, 82, 26, 57, 81, 238, 61, 149, 199, 161, 197, 169, 195, 201>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(ex_wire) lib/ex_wire/network.ex:180: ExWire.Network.send/3
(for doctest at) lib/ex_wire/network.ex:157: (test)
07:27:00.770 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
6) doctest ExWire.Network.handle/1 (3) (ExWire.NetworkTest)
test/ex_wire/network_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: ping_data = [1, [<<1,2,3,4>>, <<>>, <<5>>], [<<5,6,7,8>>, <<6>>, <<>>], 4] |> ExRLP.encode
ExWire.Network.handle(%ExWire.Network.InboundMessage{
data: <<0::256>> <> <<0::512>> <> <<0::8>> <> <<1::8>> <> ping_data,
server_pid: self(),
remote_host: nil,
timestamp: 5,
})
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<197, 63, 191, 1, 185, 51, 133, 250, 191, 41, 178, 30, 3, 8, 81, 29, 166, 104, 140, 42, 142, 192, 229, 79, 235, 117, 30, 253, 199, 91, 187, 98>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(ex_wire) lib/ex_wire/network.ex:180: ExWire.Network.send/3
(for doctest at) lib/ex_wire/network.ex:96: (test)
07:27:00.777 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
7) doctest ExWire.Network.receive/1 (5) (ExWire.NetworkTest)
test/ex_wire/network_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: ping_data = [1, [<<1,2,3,4>>, <<>>, <<5>>], [<<5,6,7,8>>, <<6>>, <<>>], 4] |> ExRLP.encode
payload = <<0::512>> <> <<0::8>> <> <<1::8>> <> ping_data
hash = ExWire.Crypto.hash(payload)
ExWire.Network.receive(%ExWire.Network.InboundMessage{
data: hash <> <<0::512>> <> <<0::8>> <> <<1::8>> <> ping_data,
server_pid: self(),
remote_host: nil,
timestamp: 123,
})
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<134, 48, 111, 37, 11, 42, 17, 137, 83, 13, 102, 36, 61, 116, 164, 138, 13, 102, 168, 187, 76, 77, 212, 191, 74, 226, 181, 64, 86, 125, 112, 164>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(ex_wire) lib/ex_wire/network.ex:180: ExWire.Network.send/3
(for doctest at) lib/ex_wire/network.ex:46: (test)
...
07:27:00.860 [debug] [Packet] Peer sent 0 transaction(s).
.......
07:27:00.861 [debug] [Packet] Received ping, responding pong.
.....
07:27:00.884 [debug] [Packet] Disconnecting to due incompatible protocol version (them 555, us: 63)
.......
07:27:00.899 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
8) doctest ExWire.Protocol.sign_message/2 (3) (ExWire.ProtocolTest)
test/ex_wire/protocol_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: message = %ExWire.Message.Ping{
version: 1,
from: %ExWire.Struct.Endpoint{ip: [1, 2, 3, 4], tcp_port: 5, udp_port: nil},
to: %ExWire.Struct.Endpoint{ip: [5, 6, 7, 8], tcp_port: nil, udp_port: 6},
timestamp: 4
}
signature = ExWire.Protocol.sign_message(message, ExthCrypto.Test.private_key())
ExthCrypto.Signature.verify(message |> ExWire.Message.encode |> ExWire.Crypto.hash, signature, ExthCrypto.Test.public_key())
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<50, 128, 213, 227, 103, 174, 203, 31, 44, 159, 115, 189, 14, 81, 104, 195, 69, 251, 23, 60, 170, 213, 166, 188, 34, 117, 169, 146, 129, 10, 42, 226>>, <<94, 217, 126, 139, 193, 247, 132, 35, 174, 8, 191, 12, 133, 229, 115, 237, 78, 81, 160, 114, 73, 118, 207, 206, 98, 114, 27, 62, 25, 29, 219, 206>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(for doctest at) lib/ex_wire/protocol.ex:51: (test)
07:27:00.919 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
9) doctest ExWire.Protocol.encode/2 (1) (ExWire.ProtocolTest)
test/ex_wire/protocol_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: message = %ExWire.Message.Ping{
version: 1,
from: %ExWire.Struct.Endpoint{ip: [1, 2, 3, 4], tcp_port: 5, udp_port: nil},
to: %ExWire.Struct.Endpoint{ip: [5, 6, 7, 8], tcp_port: nil, udp_port: 6},
timestamp: 4
}
ExWire.Protocol.encode(message, <<1::256>>)
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<50, 128, 213, 227, 103, 174, 203, 31, 44, 159, 115, 189, 14, 81, 104, 195, 69, 251, 23, 60, 170, 213, 166, 188, 34, 117, 169, 146, 129, 10, 42, 226>>, <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(for doctest at) lib/ex_wire/protocol.ex:22: (test)
07:27:00.932 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
10) doctest ExWire.Protocol.sign_binary/2 (2) (ExWire.ProtocolTest)
test/ex_wire/protocol_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: signature = ExWire.Protocol.sign_binary("mace windu", ExthCrypto.Test.private_key())
ExthCrypto.Signature.verify(ExWire.Crypto.hash("mace windu"), signature, ExthCrypto.Test.public_key())
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<158, 137, 69, 169, 129, 75, 132, 35, 91, 144, 182, 113, 145, 151, 37, 159, 114, 95, 90, 81, 226, 95, 144, 136, 63, 144, 100, 29, 190, 111, 38, 29>>, <<94, 217, 126, 139, 193, 247, 132, 35, 174, 8, 191, 12, 133, 229, 115, 237, 78, 81, 160, 114, 73, 118, 207, 206, 98, 114, 27, 62, 25, 29, 219, 206>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(for doctest at) lib/ex_wire/protocol.ex:68: (test)
.......
07:27:01.034 [debug] [Block Queue] Verified block and added to new block tree
...
07:27:01.034 [debug] [Block Queue] Verified block and added to new block tree
......
07:27:01.105 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
11) test ping / pong (WireToWireTest)
test/integration/wire_to_wire_test.exs:29
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)
code: ExWire.Network.send(ping, client_pid, remote_host)
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<107, 222, 244, 168, 13, 126, 156, 145, 102, 161, 116, 28, 16, 222, 5, 55, 96, 224, 94, 185, 140, 119, 14, 92, 64, 203, 27, 139, 252, 105, 31, 249>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(ex_wire) lib/ex_wire/network.ex:180: ExWire.Network.send/3
test/integration/wire_to_wire_test.exs:41: (test)
.................
12) test handshake build and handle auth msg / ack resp via eip-8 (HandshakeTest)
test/ex_wire/handshake/handshake_test.exs:6
** (ExUnit.TimeoutError) test timed out after 60000ms. You can change the timeout:
1. per test by setting "@tag timeout: x"
2. per case by setting "@moduletag timeout: x"
3. globally via "ExUnit.start(timeout: x)" configuration
4. or set it to infinity per run by calling "mix test --trace"
(useful when using IEx.pry)
Timeouts are given as integers in milliseconds.
code: {my_auth_msg, my_ephemeral_key_pair, _nonce} = Handshake.build_auth_msg(
stacktrace:
(kernel) code_server.erl:140: :code_server.call/1
(kernel) error_handler.erl:41: :error_handler.undefined_function/3
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/handshake/handshake.ex:180: ExWire.Handshake.build_auth_msg/5
test/ex_wire/handshake/handshake_test.exs:11: (test)
(ex_unit) lib/ex_unit/runner.ex:306: ExUnit.Runner.exec_test/1
(stdlib) timer.erl:166: :timer.tc/1
(ex_unit) lib/ex_unit/runner.ex:245: anonymous fn/4 in ExUnit.Runner.spawn_test/3
07:28:00.578 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
07:28:00.578 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
13) doctest ExWire.Handshake.build_auth_msg/5 (2) (HandshakeTest)
test/ex_wire/handshake/handshake_test.exs:3
Doctest failed: got UndefinedFunctionError with message "function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)"
code: {auth_msg_v4, ephemeral_keypair, nonce} = ExWire.Handshake.build_auth_msg(ExthCrypto.Test.public_key(:key_a), ExthCrypto.Test.private_key(:key_a), ExthCrypto.Test.public_key(:key_b), ExthCrypto.Test.init_vector(1, 32), ExthCrypto.Test.key_pair(:key_c))
%{auth_msg_v4 | signature: nil} # signature will be unique each time
ephemeral_keypair
nonce
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<69, 137, 101, 168, 37, 153, 193, 228, 40, 210, 143, 26, 51, 32, 172, 199, 36, 58, 162, 26, 38, 72, 140, 143, 12, 248, 18, 226, 132, 46, 111, 194>>, <<178, 68, 134, 194, 0, 187, 118, 35, 33, 220, 4, 3, 50, 96, 97, 91, 96, 14, 71, 239, 7, 102, 33, 187, 194, 221, 152, 36, 95, 22, 121, 48>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/handshake/handshake.ex:180: ExWire.Handshake.build_auth_msg/5
(for doctest at) lib/ex_wire/handshake/handshake.ex:141: (test)
.
07:28:00.580 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
07:28:00.586 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
07:28:00.586 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
14) test handshake auth eip 8 (HandshakeTest)
test/ex_wire/handshake/handshake_test.exs:59
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_recover_compact/4 is undefined (module :libsecp256k1 is not available)
code: {:ok, auth_msg, <<>>} = Handshake.read_auth_msg(auth, secret, "1.2.3.4")
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_recover_compact(<<83, 183, 201, 134, 14, 117, 240, 83, 143, 34, 168, 222, 106, 159, 3, 139, 45, 92, 77, 200, 102, 181, 55, 103, 186, 130, 169, 140, 10, 199, 189, 48>>, <<41, 156, 166, 172, 253, 53, 227, 215, 45, 139, 163, 209, 226, 182, 11, 85, 97, 213, 175, 82, 24, 235, 91, 193, 130, 4, 87, 105, 235, 66, 38, 145, 10, 48, 26, 202, 227, 179, 105, 255, 252, 74, 72, 153, 214, 176, 37, 49, 232, 159, ...>>, :uncompressed, 0)
(exth_crypto) lib/signature/signature.ex:110: ExthCrypto.Signature.recover/3
(ex_wire) lib/ex_wire/handshake/struct/auth_msg_v4.ex:66: ExWire.Handshake.Struct.AuthMsgV4.set_remote_ephemeral_public_key/2
(ex_wire) lib/ex_wire/handshake/handshake.ex:65: ExWire.Handshake.read_auth_msg/3
test/ex_wire/handshake/handshake_test.exs:75: (test)
..
07:28:00.588 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
07:28:00.593 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
07:28:00.593 [debug] [Network] Received EIP8 Handshake from 1.2.3.4
15) test handshake auth plain (HandshakeTest)
test/ex_wire/handshake/handshake_test.exs:38
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_recover_compact/4 is undefined (module :libsecp256k1 is not available)
code: {:ok, auth_msg, <<>>} = Handshake.read_auth_msg(auth, secret, "1.2.3.4")
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_recover_compact(<<83, 183, 201, 134, 14, 117, 240, 83, 143, 34, 168, 222, 106, 159, 3, 139, 45, 92, 77, 200, 102, 181, 55, 103, 186, 130, 169, 140, 10, 199, 189, 48>>, <<41, 156, 166, 172, 253, 53, 227, 215, 45, 139, 163, 209, 226, 182, 11, 85, 97, 213, 175, 82, 24, 235, 91, 193, 130, 4, 87, 105, 235, 66, 38, 145, 10, 48, 26, 202, 227, 179, 105, 255, 252, 74, 72, 153, 214, 176, 37, 49, 232, 159, ...>>, :uncompressed, 0)
(exth_crypto) lib/signature/signature.ex:110: ExthCrypto.Signature.recover/3
(ex_wire) lib/ex_wire/handshake/struct/auth_msg_v4.ex:66: ExWire.Handshake.Struct.AuthMsgV4.set_remote_ephemeral_public_key/2
(ex_wire) lib/ex_wire/handshake/handshake.ex:87: ExWire.Handshake.read_auth_msg/3
test/ex_wire/handshake/handshake_test.exs:51: (test)
.
16) test connect to remote peer for handshake (ExWire.RemoteConnectionTest)
test/integration/remote_connection_test.exs:121
** (ExUnit.TimeoutError) test timed out after 60000ms. You can change the timeout:
1. per test by setting "@tag timeout: x"
2. per case by setting "@moduletag timeout: x"
3. globally via "ExUnit.start(timeout: x)" configuration
4. or set it to infinity per run by calling "mix test --trace"
(useful when using IEx.pry)
Timeouts are given as integers in milliseconds.
code: {:ok, client_pid} = TCP.start_link(:outbound, peer)
stacktrace:
(stdlib) proc_lib.erl:348: :proc_lib.sync_wait/2
test/integration/remote_connection_test.exs:124: (test)
(ex_unit) lib/ex_unit/runner.ex:306: ExUnit.Runner.exec_test/1
(stdlib) timer.erl:166: :timer.tc/1
(ex_unit) lib/ex_unit/runner.ex:245: anonymous fn/4 in ExUnit.Runner.spawn_test/3
07:28:01.126 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
17) test connect to remote peer for discovery (ExWire.RemoteConnectionTest)
test/integration/remote_connection_test.exs:38
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)
code: ExWire.Network.send(ping, client_pid, remote_peer)
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<8, 188, 126, 149, 211, 5, 116, 69, 128, 211, 232, 189, 124, 163, 113, 186, 226, 158, 168, 224, 222, 85, 137, 253, 236, 188, 75, 69, 211, 102, 112, 167>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
(ex_wire) lib/ex_wire/network.ex:180: ExWire.Network.send/3
test/integration/remote_connection_test.exs:68: (test)
07:28:01.132 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
07:28:01.136 [warn] The on_load function for module libsecp256k1 returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(/Users/masonf/src/ex_wire/_build/test/lib/libsecp256k1/priv/libsecp256k1_nif.so, 2): image not found\''}}
18) test `find_neighbours` responds with `neighbors` (ExWireTest)
test/ex_wire_test.exs:49
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)
code: fake_send(find_neighbours, timestamp + 1)
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<17, 25, 75, 180, 127, 94, 218, 169, 236, 184, 174, 188, 82, 220, 79, 215, 0, 140, 208, 180, 184, 155, 16, 139, 78, 136, 126, 70, 22, 36, 195, 99>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
test/ex_wire_test.exs:71: ExWireTest.fake_send/2
test/ex_wire_test.exs:57: (test)
19) test `ping` responds with a `pong` (ExWireTest)
test/ex_wire_test.exs:30
** (UndefinedFunctionError) function :libsecp256k1.ecdsa_sign_compact/4 is undefined (module :libsecp256k1 is not available)
code: hash = fake_send(ping, timestamp + 1)
stacktrace:
(libsecp256k1) :libsecp256k1.ecdsa_sign_compact(<<229, 118, 248, 122, 101, 236, 113, 205, 34, 105, 123, 246, 240, 214, 237, 18, 7, 157, 79, 103, 76, 245, 221, 164, 142, 251, 99, 181, 126, 136, 109, 45>>, <<245, 227, 72, 150, 67, 245, 148, 145, 174, 24, 183, 207, 75, 36, 93, 87, 97, 209, 226, 104, 134, 239, 206, 229, 189, 253, 147, 95, 206, 193, 149, 218>>, :default, "")
(exth_crypto) lib/signature/signature.ex:52: ExthCrypto.Signature.sign_digest/2
(ex_wire) lib/ex_wire/protocol.ex:76: ExWire.Protocol.sign_binary/2
(ex_wire) lib/ex_wire/protocol.ex:33: ExWire.Protocol.encode/2
test/ex_wire_test.exs:71: ExWireTest.fake_send/2
test/ex_wire_test.exs:40: (test)
Finished in 60.9 seconds
132 doctests, 16 tests, 19 failures
Randomized with seed 118780
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment