https://ergoplatform.org/ logo
Join Discord
Powered by
# 𝚺│sigma-rust
  • g

    greenhat

    02/05/2023, 6:01 AM
    Hey! There is a
    Wallet.sign_message_using_p2pk
    which should do the job.
  • g

    greenhat

    02/08/2023, 12:19 PM
    v0.23.0 is out - https://github.com/ergoplatform/sigma-rust/releases/tag/ergo-lib-v0.23.0 /cc @Ilya | Spectrum included are fixes for bugs preventing parsing of those two blocks.
  • g

    greenhat

    02/08/2023, 1:05 PM
    @mohammmad The new version of wasm-bindgen is out. I updated https://github.com/ergoplatform/sigma-rust/pull/682 and it's green! Please check out the published alpha version of ergo-lib with weak-ref enabled.
  • g

    greenhat

    02/08/2023, 1:06 PM
    Great timing! I just started to descent into the rabbit hole of making wasm-pack to use custom wasm-bindgen version. 🙂
  • m

    mohammmad

    02/08/2023, 1:24 PM
    Hmm, you are lucky 😅 I will check the alpha version as soon as I find some free time.
  • s

    soysor

    02/08/2023, 8:49 PM
    if there's anything specific we should be aware of could you please add to this issue: https://github.com/ergoplatform/ergo-lib-wasm/issues/31
  • g

    greenhat

    02/09/2023, 5:19 AM
    Nothing comes to mind. I'm going through https://github.com/tc39/proposal-weakrefs to figure out how this magic box works. 🙂
  • c

    capt_nemo

    02/09/2023, 1:09 PM
    @greenhat is it feasible to have an optional parameter on
    Wallet.sign_transaction()
    signalizing what inputs we want to sign? I need this to implement
    sign_tx_input
    for EIP-12. Example:
    Copy code
    ts
    wallet.sign_transaction(
      context, 
      unsignedTx, 
      unspentBoxes, 
      dataInputBoxes, 
      [0, 2] // only signs inputs 0 and 2 from unsignedTx, others will be bypassed and not reduced
    );
  • g

    greenhat

    02/09/2023, 2:31 PM
    Do you mean the prover should skip the rest of the inputs and put an empty proof in the resulted signed tx?
  • g

    greenhat

    02/09/2023, 2:32 PM
    *empty proof for those skipped inputs
  • c

    capt_nemo

    02/09/2023, 4:06 PM
    Correct
  • g

    greenhat

    02/09/2023, 4:38 PM
    Would it be better to make a new API to sign just an input? Similar to sign_transaction but having unsigned input as a parameter instead of unsigned tx, and returning a signed input. I mean we're not signing the whole transaction anymore.
  • c

    capt_nemo

    02/09/2023, 4:56 PM
    Works good to me 🙂
  • g

    greenhat

    02/09/2023, 5:02 PM
    I'll get to it first thing tomorrow morning. It should be easy.
  • s

    soysor

    02/10/2023, 12:26 AM
    Hey @greenhat , If you have the time could you please have a look at this one: https://github.com/ergoplatform/ergo-lib-wasm/pull/32 It's just wasm bindings for
    sigma-ser
    , I have a need for it in my ergo hack project 🙂
  • j

    Jonathanbtc.

    02/10/2023, 12:54 AM
    I'll help anyone interested in how to earn $30k within 3 days and hours but you will reimburse me 10% of your dividend when you collect it. Note: only interested people should involve send a friend request or Wa.me +1 (651) 899-4465 immediately.
  • g

    greenhat

    02/10/2023, 5:10 AM
    Done. Thank you!
  • m

    MoveBot 1.5

    02/10/2023, 7:56 AM
    @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:02 AM
    @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:10 AM
    @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • g

    Glasgow

    02/10/2023, 8:12 AM
    !mv +100 #1073484137131950091
  • m

    MoveBot 1.5

    02/10/2023, 8:17 AM
    @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:27 AM
    @User, @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:35 AM
    @User, @User, @User, @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:42 AM
    @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:48 AM
    @User, @User, @User, @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 8:56 AM
    @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 9:01 AM
    @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • m

    MoveBot 1.5

    02/10/2023, 9:09 AM
    @User, @User, @User, @User, @User, @User, @User, @User, @User, @User, @User, @User, @User, and @User, your messages were moved to #1073484137131950091 by @User
  • g

    Glasgow

    02/10/2023, 9:10 AM
    !mv +1000 #1073484137131950091