[SOLVED]Am I the only person that can not sign name Tx with epoch?


I followed the instructions at: https://dev.aepps.com/tutorials/naming-workflow-in-node-console.html with the ROMA binary release 1.1.0 at github.

Everything seems OK at the beginning,

([email protected])16> {ok, PreClaimTx} = CreatePreClaimTx(Name, Salt, Nonce).

but finally, I got:

([email protected])17> SignAndPushTx(PreClaimTx).
** exception error: no match of right hand side value

There is similar problem when I send coins in the console: https://github.com/aeternity/tutorials/blob/master/spend-transaction-in-node-console.md

Am I the only one that can not claim test name successfully?


did you use the network_id ?


Impossible to tell without seeing the whole shell history, but my guess would be that you have already bound a variable (Erlang is assign once) so something is not matching…

For example if you first did

% verify keys to be correct
SampleMsg = <<"random message">>, 
Signature = enacl:sign_detached(SampleMsg, PrivKey),
{ok, SampleMsg} == enacl:sign_verify_detached(Signature, SampleMsg, PubKey),

and then in the same shell define:

f(SignAndPushTx), SignAndPushTx = fun(Tx) ->
  Signature = enacl:sign_detached(TxBinMainnet, PrivKey),

Then you will try to match the first Signature with the result of enacl:sign_detached(TxBinMainnet, PrivKey) in the function. This is probably not what you want… A better way to define SignAndPushTx is:

f(SignAndPushTx), f(TxBin), f(TxBinMainnet), f(Signature), f(SignedTx), 
SignAndPushTx = fun(Tx) ->


Thanks~I used the default instructions and yes,there is a network_id


Thanks very much and happy new year!

I spitted SignAndPushTx function into single commands, and it seems OK.

I’ll try deeper.